大约有 1,206 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0095 秒)
...does not exist on type 'typeof ui'. Did you mean 'UIComponent'? 2018-10-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 三五七 赞同来自: 晴天73 已解决 2018-10-17 1 1 分享 微博 QZONE 微信 Laya_A...
来源: Laya_社区 发布时间: 20181011
...所有对象重新排序。值越大,越靠上。默认为0,则根据添加顺序排序。SpriteProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties PropertyDefined By measureHeight : Number[read-only] 显示对象的实际显示区域高度(以像素...
来源: laya_api 发布时间: 20170929
.../设置 textArea 的高度。 Laya.stage.addChild(textArea);//将 textArea 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 Laya.loader.load(["resource/ui/input.png"], laya.utils.Handler....
来源: Laya3.0_api 发布时间: 20231115
... 改变选择项执行的处理器。 Laya.stage.addChild(list);//将 list 添加到显示列表。 } private function onSelect(index:int):void { trace("当前选择的项目索引: index= ", index); } } } import laya.ui.Box; import laya.ui.Label; class Item extends Box { public function Item() { ...
来源: Laya3.0_api 发布时间: 20231115
...置 textInput 的高度。 Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 Laya.loader.load(["resource/ui/input.png"], laya.utils.Handler.create(this, onL...
来源: Laya3.0_api 发布时间: 20231115
...IXED_AUTO 怎么知道是进行了怎样的缩放 比如说:我stage上添加了一张图片,运行时图片因为适配模式发生了相应大小的变化,Laya.Stage.SCALE_FIXED_AUTO 是按怎么样的规则去改变这张图的宽高的 我现在在index.html中添加了一张图片,...
来源: Laya_社区 发布时间: 20180806
...ight = 100;//设置 tree 的高度。 Laya.stage.addChild(tree);//将 tree 添加到显示列表。 } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; class Item extends Box { public function Item() { this.name = "render"; this.right = 0; this.left = 0; var selectBox:Clip = new Cli...
来源: Laya3.0_api 发布时间: 20231115
...事件处理器。 Laya.stage.addChild(checkBox);//将此 checkBox 对象添加到显示列表。 } private function onClick(checkBox:CheckBox):void { trace("输出选中状态: checkBox.selected = " + checkBox.selected); } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColo...
来源: Laya3.0_api 发布时间: 20231115
...点击事件处理器。 Laya.stage.addChild(button);//将此 button 对象添加到显示列表。 } private function onClickButton(button:Button):void { trace("按钮button被点击了!"); } } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefe...
来源: Laya3.0_api 发布时间: 20231115
...行的处理器。 Laya.stage.addChild(comboBox);//将此 comboBox 对象添加到显示列表。 } private function onSelect(index:int):void { trace("当前选中的项对象索引: ",index); } } } example Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置...
来源: Laya3.0_api 发布时间: 20231115