大约有 1,199 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)
Laya_社区(966) Laya2.0_文档(66) Laya3.0_api(49) Laya3.0_文档(31) Laya2.0_api(27) laya_api(21) Laya_示例(20) Laya2.0_示例(19)
...render,如果用box.dataSource={aa:'我是一个标签'},可以改变Label(aa)的内容,但Label(bb)在Image上面,怎么改变Label(bb)的内容,dataSource的数据结构怎么写? 如果用customRender的话怎么写?谢谢 附件 : --> 2017-04-26 添加评论 免费帖 --> 分享...
来源: Laya_社区 发布时间: 20170426
...; button2.on(Event.CLICK, this, onDecreaseAlpha2); } function createButton(label) { var w = 300, h = 60; var button = new Sprite(); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } fun...
来源: Laya_示例 发布时间: 20260303
...能编辑修改的基础文本。LayaAirIDE中提供了Text、FillText、Label这三种基础的显示文本组件。 #### 1.1、文本的底层渲染机制 LayaAir引擎在文本的底层渲染上,有两种方式。 分别是Text文本类的文本统一提交方式,和Graphics类的fillText文...
来源: Laya2.0_文档 发布时间: 20210715
...t; event.pairs.length; i++) { var pair = event.pairs[i]; if(pair.bodyA.label === 'gun' && pair.bodyB.label == "gameover") { this.onGameOver(); } } } private onGameOver(): void { console.log("结束游戏...");} 附件 : --> 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180524
...  (图1) 设置 ComboBox 的属性 labels 的值为 “label1,label2” 后,显示效果如下: 常态:  (图2) 点击后显示下拉选项列表:  (图3) 在下拉...
来源: Laya2.0_文档 发布时间: 20210714
...teController() { controller = new Button(buttonSkin, "暂停"); controller.labelBold = true; controller.labelColors = "#FFFFFF,#FFFFFF,#FFFFFF,#FFFFFF"; controller.size(84, 30); controller.on('click', this, onClipSwitchState); controller.x = (Laya.stage.width - controller.width) / 2; controller.y = ...
来源: Laya_示例 发布时间: 20260303
...index); } } import Box = laya.ui.Box; import Image = laya.ui.Image; import Label = Laya.Label; export class ListDataSourceItem extends Box { public static WID: number = 200; public static HEI: number = 20; // private _img: Image = null; private _lb:Label = null; constructor() { super(); this._lb = n...
来源: Laya_社区 发布时间: 20180410
... this.button2.on(Event.CLICK, this, this.onDecreaseAlpha2); } createButton(label) { const Sprite = Laya.Sprite; let w = 300, h = 60; let button = new Sprite(); Laya.stage.addChild(button); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, ...
来源: Laya2.0_示例 发布时间: 20260303
...  (图1) 设置 ComboBox 的属性 labels 的值为 “label1,label2” 后,显示效果如下: 常态:  (图2) 点击后显示下拉选项列表:  (图3) 在下拉...
来源: Laya2.0_文档 发布时间: 20210715
...utton; this.controller = new Button(buttonSkin, "暂停"); this.controller.labelBold = true; this.controller.labelColors = "#FFFFFF,#FFFFFF,#FFFFFF,#FFFFFF"; this.controller.size(84, 30); this.controller.on('click', this, this.onClipSwitchState); this.controller.x = (Laya.stage.width - this.controll...
来源: Laya2.0_示例 发布时间: 20260303