大约有 1,442 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0056 秒)
Laya_社区(922) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(33) laya_api(1) Laya2.0_api(1)
...countdownBar() { PauseDialog.super(this); this.name = 'CountdownBar'; Laya.stage.addChild(this); this.zOrder = 100; this.count = 4; this.countLabel.text = '' + this.count; Laya.timer.loop(1000, this, this.countdown); } Laya.class(countdownBar, "CountdownBar", CountdownUI); return countdownBar; }());...
来源: Laya_社区 发布时间: 20171012
...ris/naruto2.ani"); //添加到舞台 var apesCtn = new Laya.Sprite(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = ...
来源: Laya_社区 发布时间: 20190117
...染模式 Laya.init(600, 400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //资源路径 this.skin1 = "checkbox.png"; this.skin2 = "checkbox.png"; //加载资源成功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2],Laya.Handler.create(this,onLoaded)); functio...
来源: Laya2.0_文档 发布时间: 20210715
...og("onLoaded"); //实例化RunGame // var runGame = new RunGame(); // Laya.stage.addChild(runGame); var sp = new laya.display.Sprite(); sp.x = 100; sp.y = 100; var texture = Laya.loader.getRes('player/chara_01.png'); sp.graphics.drawTexture(texture, 0, 0, 96, 96); Laya.stage.addChild(sp); console.lo...
来源: Laya_社区 发布时间: 20160801
...E >> 1, this.DEF_SIZE >> 1,-90,this.startY,'#ff0000') } } Laya.stage.addChild(new Test()) 2018-08-17 0 0 分享 微博 QZONE 微信 Barry Allen 赞同来自: 多看看文档这么简单的一个问题几个月都弄不出来 2018-08-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0...
来源: Laya_社区 发布时间: 20180123
...上面,我给UI设置了名字,加到舞台 Laya.Button button = Laya.stage.addChild(new Laya.Button("res/layabox.png", "切换动作")) as Laya.Button; button.name = "abc"; Laya.Button.on(Laya.Event.CLICK, this, function:void{ 具体实现 }); 在另一个方法里面 Laya.stage.on(Lay...
来源: Laya_社区 发布时间: 20180416
...为安全键盘后,无法关闭(官网的例子) (function() { var Stage = Laya.Stage; var TextInput = Laya.TextInput; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var SPACING = 100; var INPUT_WIDTH = 300; var INPUT_HEIGHT = 50; var Y_OF...
来源: Laya_社区 发布时间: 20190814
...; testView.mc.play(0,true); Laya.stage.addChild(testView); Laya.timer.once(2000,this,onLoop,[testView]); } private function onLoop(testView:TestView):void { testView.mc.stop(...
来源: Laya_社区 发布时间: 20170608
...#FFFFFF"; txt.pos(50, 100); Laya.stage.addChild(txt); socket = new Socket(); output = socket.output; ...
来源: Laya_社区 发布时间: 20170209
...言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; initShader(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transf...
来源: Laya_示例 发布时间: 20250225