• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,199 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)

311. 请问下customRender和dataSource问题 [ 78%]

...render,如果用box.dataSource={aa:'我是一个标签'},可以改变Label(aa)的内容,但Label(bb)在Image上面,怎么改变Label(bb)的内容,dataSource的数据结构怎么写? 如果用customRender的话怎么写?谢谢   附件 : --> 2017-04-26 添加评论 免费帖 --> 分享...

来源: Laya_社区 发布时间: 20170426

312. 计时器-延迟执行 [ 78%]

...; 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

313. 一篇了解所有的LayaAir文本组件(TypeScript-LayaAir基础篇(TS)-文本) [ 78%]

...能编辑修改的基础文本。LayaAirIDE中提供了Text、FillText、Label这三种基础的显示文本组件。 #### 1.1、文本的底层渲染机制 LayaAir引擎在文本的底层渲染上,有两种方式。 分别是Text文本类的文本统一提交方式,和Graphics类的fillText文...

来源: Laya2.0_文档 发布时间: 20210715

314. matter 2d 碰撞检测 [ 78%]

...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

315. ComboBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 78%]

...​ ![图片0.png](img/1.png) ​ (图1) ​ 设置 ComboBox 的属性 labels 的值为 “label1,label2” 后,显示效果如下: ​ 常态: ​ ![图片0.png](img/2.png) ​ (图2) ​ 点击后显示下拉选项列表: ​ ![图片0.png](img/3.png) ​ (图3) ​ 在下拉...

来源: Laya2.0_文档 发布时间: 20210714

316. UI-Clip [ 78%]

...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

317. List组件拖动浏览时item会出现重叠的现象 [ 78%]

...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

318. 计时器-延迟执行 [ 77%]

... 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

319. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 77%]

...​ ![图片0.png](img/1.png) ​ (图1) ​ 设置 ComboBox 的属性 labels 的值为 “label1,label2” 后,显示效果如下: ​ 常态: ​ ![图片0.png](img/2.png) ​ (图2) ​ 点击后显示下拉选项列表: ​ ![图片0.png](img/3.png) ​ (图3) ​ 在下拉...

来源: Laya2.0_文档 发布时间: 20210715

320. UI-Clip [ 77%]

...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