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

大约有 216 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0039 秒)

41. UI-Tree [ 76%]

..."Box", "props": {"name": "render", "right": "0", "left": "0"}}; class Item extends Box { constructor() { super(); this.right = 0; this.left = 0; let selectBox = new Clip("res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; // 设置 selectBox 的name 为“selectBox”时,将被...

来源: Laya2.0_示例 发布时间: 20241001

42. 面板容器组件 · LayaAir3.0文档 · LAYABOX [ 76%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Panel }) public panel: Laya.Panel; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.panel.pos(100, 100); t...

来源: Laya3.0_文档 发布时间: 20230923

43. native ui is not defined [ 75%]

... 林龙 赞同来自: ts 编译后的 js 代码为:    class StarFlyUI extends ui.hall.HallViewUI {     2018-05-28 0 0 分享 微博 QZONE 微信 林龙 赞同来自: 用es5. 还是要靠自己 2018-05-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

44. IDE-显示IDE创建的界面 [ 75%]

...; import Handler = Laya.Handler; import Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Laya.CLICK, this, this.onBtnClick); this.btn2.on(Laya.CLICK, this, ...

来源: Laya_示例 发布时间: 20241001

45. IDE-显示IDE创建的界面 [ 75%]

...; import Handler = Laya.Handler; import Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Laya.CLICK, this, this.onBtnClick); this.btn2.on(Laya.CLICK, this, ...

来源: Laya2.0_示例 发布时间: 20200319

46. 垂直滑动条组件 · LayaAir3.0文档 · LAYABOX [ 75%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({type:Laya.VSlider}) public vslider: Laya.VSlider; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.vslider.pos(300,300...

来源: Laya3.0_文档 发布时间: 20230919

47. 水平滑动条组件 · LayaAir3.0文档 · LAYABOX [ 75%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.HSlider }) public hslider: Laya.HSlider; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hslider.pos(300,...

来源: Laya3.0_文档 发布时间: 20230920

48. 加载UI不成功,项目源码已经上传 [ 75%]

...9 我截图的这个是源码 wudi199553 • 2017-11-13 19:48 class TestUI extends ui.test.TestPageUI { constructor() { super(); } } Laya.init(600, 400); Laya.stage.bgColor = "#FFFFF00"; this.onLoaded(); function onLoaded(): void { var testUI: TestUI = new TestUI(); Laya.stage.addChild(tes...

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

49. 使用3DUI · LayaAir3.0文档 · LAYABOX [ 75%]

...nerated"; import { Main } from "./Main"; @regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on( Laya.Event.CLICK, this, this.onHurt ); } onHurt(): void { this.bar.value = this.bar.value - 0.1; this.value.y = 35; this....

来源: Laya3.0_文档 发布时间: 20231129

50. 分包项目, 加载js时报错 [ 75%]

...关的链接 提交 2 个回复 sevennqi 赞同来自: 这个是我改成extends Box:  package {     import laya.ui.Box;     import laya.display.Text;     import laya.ui.View;     /*[COMPILER OPTIONS:ForcedCompile]*/     public class loading100 extends Box     {         publ...

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