大约有 421 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)
Laya_社区(242) Laya3.0_api(48) Laya2.0_文档(37) Laya3.0_文档(21) Laya_示例(20) Laya2.0_示例(19) laya_api(17) Laya2.0_api(17)
...nts Packagelaya.uiClasspublic class TextAreaInheritanceTextArea TextInput Label Component Sprite Node EventDispatcher Object TextArea 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By align...
来源: laya_api 发布时间: 20170929
...is.onPlaySound); } private createButton(label: string): Sprite { var w: number = 110; var h: number = 40; var button: Sprite = new Sprite(); button.siz...
来源: Laya_社区 发布时间: 20201203
...高,滚动条就出现了。初步确定是键盘输入文字无法改变label的textHeight,还是说别的什么情况?有没有什么处理方式? 2017-08-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...
来源: Laya_社区 发布时间: 20170812
... package { import laya.display.Stage; import laya.ui.Image; import laya.ui.Label; import laya.webgl.WebGL; public class screenMode { public function screenMode() { Laya.init(0, 0, WebGL); Laya.stage.scaleMode = "full"; Laya.stage.bgColor = "#232628"; //自动横屏,游戏的水平方向始终与...
来源: Laya2.0_文档 发布时间: 20210714
...Add.skin='button-4.png'; Laya.stage.addChild(btnAdd); btnAdd.x=550; btnAdd.label='ADD1000'; btnAdd.on(Event.CLICK,this,onClick,[sp,panel]); } private function onClick(sp:Sprite,panel:Panel):void { trace('Add1000'); for(var i:int=0;i<1000;i++) { var button:Button=new Button('button-4.png'); button...
来源: Laya_社区 发布时间: 20170601
...); musicButton.on(Event.CLICK, this, onPlayMusic); } function createButton(label) { var w = 110; var h = 40; var button = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChi...
来源: Laya_社区 发布时间: 20170527
... 1 个回复 Laya_Aaron 赞同来自: 文字是画上去的, 用 text 和label 就是每个对象都画一次, 这个文字相同只是我们作为开发者知道,引擎并没有对组件内容进行判断 graphics 的动态文本 fillText 可以 做到 相同的文字 只缓存一次 ...
来源: Laya_社区 发布时间: 20190713
...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_示例 发布时间: 20251130
... 如果没解锁进行赋值 var goldlabel:Label = gold.getChildByName("goldLabel")as Label; goldlabel.text= HostData.array[index].gold;//商城角色购买金额的赋值 }else{ ...
来源: Laya_社区 发布时间: 20180503
...k){//该角色是不是已经解锁了 如果没解锁进行赋值 var goldlabel:Label = gold.getChildByName("goldLabel")as Label; goldlabel.text= HostData.array[index].gold;//商城角色购买金额的赋值 }else{ gold.visible =false;//如果已经解锁了 那么关闭金币购买UI } ...
来源: Laya_社区 发布时间: 20180522