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

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

91. IDE-显示IDE创建的界面 [ 64%]

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

92. IDE-显示IDE创建的界面 [ 64%]

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

93. 下拉选项框组件 · LayaAir3.0文档 · LAYABOX [ 64%]

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

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

94. 缓动-缓动函数演示 [ 64%]

...3); input.inputElementYAdjuster = 1; return input } } class ListItemRender extends Laya.Box { constructor() { super(); const Label = Laya.Label; this.size(100, 20); this.label = new Label(); this.label.fontSize = 12; this.label.color = "#FFFFFF"; this.addChild(this.label); } setLabel(value) { this.l...

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

95. runTime使用(JavaScript-IDE篇(JS)-组件化开发相关) [ 64%]

...部代码如下所示: ```typescript export default class ImageRunTime extends Laya.Image{ constructor(){ super(); this.scaleTime = 100; //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this...

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

96. 导航标签组组件 · LayaAir3.0文档 · LAYABOX [ 63%]

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

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

97. Laya 绑定显示内容到骨骼动画 [ 63%]

...1. 可绑定内容的骨骼动画   export default class BindSkeleton extends Laya.Skeleton { private __bindList:BindSource[]; constructor(){ super(); this.__bindList=[]; }  /** * 绑定 * @param source */ bind(source:BindSource):void{ let index:number=this.__bindList.indexOf(source); if(...

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

98. layaMaxUI里面的ui继承不到 [ 63%]

...回复 tea 赞同来自: 不清楚为啥  export default class gameMain extends ui.test.gameMain 这样也不行 2018-11-15 0 0 分享 微博 QZONE 微信 lsx968542 赞同来自: 是不是没有导入文件 import { ui } from "./ui/layaMaxUI"; 2018-11-16 0 1 分享 微博 QZONE 微信 为什么被...

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

99. Laya2.0引包问题!!! [ 63%]

...mport { FairyUtils } from './../utils/FairyUtils'; export class BaseSprite extends fairygui.GComponent TypeError: Object prototype may only be an Object or null: undefined preload.js:55 at setPrototypeOf (<anonymous>) 2019-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

100. 小白求助,为何这个工程的 onOpened 没有执行 [ 63%]

.../ui/layaMaxUI"; import MyDialogUI = ui.MyDialogUI;  export class MyDialog extends MyDialogUI { constructor() { super(); }  onOpened(param: any): void { console.log("mylog------" ); } } 附件 : --> 示例工程.zip 2019-09-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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