大约有 488 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0040 秒)
...odule view { export class GameInfo extends ui.GameInfoUI { constructor() { super(); this.kaishi_btn.on(Laya.Event.MOUSE_DOWN, this, this.onStart); // Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.birdFly);//可以绑定两个函数 Laya.stage.on(Laya.Event.KEY_DOWN, this, this.birdFly); this.init(...
来源: Laya_社区 发布时间: 20180507
...: var Test = (function(_surper){ function Test(){ Test.super(this); }; Laya.class(Test, "Test", _surper); return Test; })(ui.TestUI); 报错Uncaught TypeError: Cannot read property 'call' of undefined at Function.<anonymous> (laya.core.j...
来源: Laya_社区 发布时间: 20170621
...个list item啊。 打开 dialog b 。b的构造方法: constructor() { super(); console.log(" Here is DlgNote2"); this.closeEffect = null; this.closeBtn.on(Laya.Event.CLICK, this, this.toClose); //this.show(); } b的关闭方法: toClose():void{ //Laya.Scene.open("datiPage.scene&...
来源: Laya_社区 发布时间: 20190521
...o extends Sprite3D { constructor() { super(); let mesh = Sprite3D.load('resources/shuipao.lh'); this.addChild(mesh); mesh.on(Event.HIERARCHY_LOADED, this, this.OnHierarchyLoaded); ...
来源: Laya_社区 发布时间: 20170608
...ar urlLoader:URLLoader; private var l:Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { urlLoader=new URLLoader(); urlLoader.dataFormat=URLLoaderDataFormat.BINARY; urlLoader.addE...
来源: Laya_社区 发布时间: 20151228
...eUI { private tip:Laya.TipManager = new Laya.TipManager(); constructor() { super(); this.popupEffect= new Laya.Handler(this, function(dialog:Dialog):void { dialog.scale(1, 1); Laya.Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 2000, Laya.Ease.bounceOut...
来源: Laya_社区 发布时间: 20180620
...tends Laya.Script { private progressBar: Laya.ProgressBar; constructor() { super(); } onAwake(): void { // 加载进度条资源,图片资源来自“引擎API使用示例” Laya.loader.load(["resources/res/ui/progressBar.png", "resources/res/ui/progressBar$bar.png"]).then(() => { // 创建进...
来源: Laya3.0_文档 发布时间: 20240910
...xtends Laya.Sprite { private swimpoolani:Laya.Animation; constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ Laya.Animation.createFrames([swimpo...
来源: Laya_社区 发布时间: 20190805
... horizontalSpace: number = 5; private sprite: Laya.Sprite; constructor() { super(); this.sprite = new Laya.Sprite(); } drawText(x: number, y: number, w: number, h: number) { console.log(2222); var j = 0;//控制行列 var printNumber = 0;//当前输出字数 var fonts = this.fontSize + "px" + " " +t...
来源: Laya_社区 发布时间: 20191103
...createView调用代码么? 就像这样子: createChildren():void { super.createChildren(); this.createView(Laya.loader.getRes("test/TestPage.json")); this.loadUI("test/TestPage"); } 2. 在编辑器生成代码的时候怎么添加自定义的操作? 比如我想同时生成一...
来源: Laya_社区 发布时间: 20171229