大约有 432 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0061 秒)
...GameMain extends Laya.Scene { constructor(){ super(); GameMain.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("main.scene"); } onEnable() { ...
来源: Laya_社区 发布时间: 20201110
...a; @regClass() export class UI_Panel extends Laya.Script { constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 创建Panel组件 let panel: Laya.Panel = new Laya.Panel(); panel.hScrollBarSkin = "atlas/...
来源: Laya3.0_文档 发布时间: 20251010
... { console.log("Game start"); this.ui = this.owner.scene as RuntimeScript; super.baseUI(this.ui); } } import { Main } from "./Main"; import { ButtonRuntime } from "./ButtonRuntime"; const { regClass, property } = Laya; @regClass() export class ButtonScript extends Main { private ui: ButtonRuntime; o...
来源: Laya3.0_文档 发布时间: 20251010
...xt; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Image(); this.img.width = 200; this.img.height = 200; this.height = 230; ...
来源: Laya_社区 发布时间: 20210122
...dule dialog { export class WanF extends ui.dialog.WanFUI { constructor() { super(); this.rotation = 90; this.pos(1060, 280); let panel = new Laya.Panel(); panel.size(638, 527); panel.vScrollBarSkin = "CommDialog/vscroll.png"; this.sp_wanfa.addChild(panel); let t = new Laya.Label(); t.width = 638; t....
来源: Laya_社区 发布时间: 20180426
...模式和slow模式都有这个问题 class Scene_Test { constructor() { super(); Laya.timer.frameLoop(1,this,this.update); } private update() { let dt = Laya.timer.delta / 1000; console.log("dt="+dt); } } 附件中图1是在iphone6上面运行打印的信息,图2是在模拟下运行打印的...
来源: Laya_社区 发布时间: 20180808
... [ "gate/Conventional/Test.ls", ]; constructor() { super(); } onAwake(): void { Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish)); } onPreLoadFinish() { //初始化3D场景 let test = Laya....
来源: Laya_社区 发布时间: 20190925
...y.Sprite; class RecordItem extends Sprite { public function RecordItem() { super(); this.size(240, 27); } } 2017-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 DemonWu 赞同来自: Charles _loadingBg添加m...
来源: Laya_社区 发布时间: 20170323
...测到按键按下,却一直输出undefined var GameStart = (function (_super) { function GameStart() { GameStart.super(this); Laya.stage.on(Laya.Event.KEY_DOWN,LayaSample,Test); } function Test(e){ console.log(e.keycode); ...
来源: Laya_社区 发布时间: 20180208
..."resources/res/ui/tab1.png", "resources/res/ui/tab2.png"]; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then( ()=>{ this.onLoadComplete(); } ); } private onLoadCompl...
来源: Laya3.0_文档 发布时间: 20251010