大约有 229 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0078 秒)
Laya_社区(94) Laya3.0_api(41) Laya2.0_文档(29) Laya2.0_api(18) laya_api(17) Laya2.0_示例(12) Laya3.0_文档(9) Laya_示例(9)
文本排版错乱 多个label 拼接一段文字,因为样式不一样,需要多个label拼接! 在pc端显示正常,在移动端打开时,文本位置偏移,错乱! 这个问题如何解决? pc端 -------------------------------- 移动端 附件 : --> Test1.rar 2017-06-09 ...
来源: Laya_社区 发布时间: 20170609
...个 CheckBox 类的实例对象 checkBox ,传入它的皮肤skin和标签label。 checkBox.x = 100;//设置 checkBox 对象的属性 x 的值,用于控制 checkBox 对象的显示位置。 checkBox.y = 100;//设置 checkBox 对象的属性 y 的值,用于控制 checkBox 对象的显示位置。 ...
来源: Laya3.0_api 发布时间: 20231115
...d{ var itemImg:Image=cell.getChildByName("itemImg") as Image; var itemName:Label=cell.getChildByName("itemName") as Label; itemImg.skin=cell.dataSource.image_url; itemName.width=Number(itemName.text.length*20); itemName.height=20; itemName.fontSize =12; itemName.text=cell.dataSource.cat_name; }fontS...
来源: Laya_社区 发布时间: 20170829
...is.onPlaySound); } private createButton(label: string): Sprite { var w: number = 110; var h: number = 40; var button: Sprite = new Sprite(); button.siz...
来源: Laya_社区 发布时间: 20201203
...载完成!"); var button:Button = new Button("resource/ui/button.png","label");//创建一个 Button 类的实例对象 button ,并传入它的皮肤。 button.x = 100;//设置 button 对象的属性 x 的值,用于控制 button 对象的显示位置。 button.y = 100;//设置 button 对象的...
来源: Laya3.0_api 发布时间: 20231115
...t; Handler = Laya.Handler; WebGL = Laya.WebGL; Animation = Laya.Animation; Label = Laya.Label; Text = Laya.Text; Point = Laya.Point; Tween = Laya.Tween; TextArea = Laya.TextArea; class UI_RefreshList { constructor() { this.baseBox = null; this.refreshLoading = null; this.loadingAni = null; this.load...
来源: Laya2.0_示例 发布时间: 20260303
...M,需要将DOM在resize 和scroll的时候 始终绑定到UI中的 参考label上。 2,目前遇到的问题 PC端测试,在UI加载完成后,将DOM绑定到resize和scroll事件上,可以实现DOM与参考Label 位置绑定。 但是,在手机上,如微信浏览器,初次加载...
来源: Laya_社区 发布时间: 20170720
...因? 如何清除sharedCanvas上一次绘制的内容 资源编辑器的label控件的垂直居中有问题 fixed_height时不居中 对齐模式选居中 没效果 Laya2.20bata4版本使用HTMLDivElement报错 drawTexture时,Matrix对象,a=-1,无法实现水平翻转 问题状态 最新活动...
来源: Laya_社区 发布时间: 20190227
...ScaleX globalScaleY graphics gray height hideFlags hitArea iconOffset is3D label labelAlign labelBold labelColors labelFont labelPadding labelSize labelStroke labelStrokeColor labelVAlign left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollR...
来源: Laya3.0_api 发布时间: 20231115
...icButton.on(Event.CLICK, this, this.onPlayMusic); } private createButton(label: string): Sprite { var w: number = 110; var h: number = 40; var button: Sprite = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei...
来源: Laya_社区 发布时间: 20190421