大约有 772 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
Laya_社区(428) Laya3.0_api(62) Laya2.0_api(58) Laya2.0_文档(57) laya_api(53) Laya_示例(49) Laya2.0_示例(48) Laya3.0_文档(17)
...hysics"].enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; //打开调试面板(通过IDE设置调试模式,或者u...
来源: Laya2.0_文档 发布时间: 20210715
...异 实现类似飞机大战一边滑动一边施放技能 写法如下: stage.on(Event.MOUSE_DOWN, this, onMouseDown); private function onMouseDown(e:Event = null):void { var touches:Array = e.touches; if (touches) { moveX = touches[0].stageX stage.on(Event.MOUSE_MOVE, this, onMouseMove) } } priv...
来源: Laya_社区 发布时间: 20210203
...nLoaded(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game.ui.test.TestPageUI; import laya.display.Text; import laya.events.Event; import laya.ui.Box; import laya.ui.Label; public class TestView extends TestPageUI { public...
来源: Laya_示例 发布时间: 20251130
...nLoaded(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game.ui.test.TestPageUI; import laya.display.Text; import laya.events.Event; import laya.ui.Box; import laya.ui.Label; public class TestView extends TestPageUI { public...
来源: Laya2.0_示例 发布时间: 20200319
...景代码里: var dialog = new QuestionDialogUI(); Laya.stage.addChild(dialog); dialog.popup(); dialog.btn_question_dialog_next.on(Laya.Event.CLICK, this, onNext); dialog.radioGroup_question.labels = "如果资源未加载,则先加载资源,\...
来源: Laya_社区 发布时间: 20180718
...给主角飞机(hero)添加事件,怎么做 demo中的事件都是给stage添加的,stage.on()之类的,因为主机飞机(hero)都是用Role()类去构造的,添加事件应该怎么做 2018-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20180613
...var clickRect = new Laya.Sprite(); clickRect.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height-100 ); clickRect.pos( 0, 0 ); clickRect.size( Laya.stage.width, Laya.stage.height-100 ); Laya.stage.addChild( clickRect ); clickRect.on( Laya.Event.CLICK, this, changeVxVy ); } function changeV...
来源: Laya_社区 发布时间: 20180201
...改为如下: (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var maskSp; var bg2; (function() { // 不支持WebGL时自动...
来源: Laya_社区 发布时间: 20170828
....COMPLETE,this.onSplashComplete); this.owner.ani.play(0,false); this.owner.stage.on(Laya.Event.COMPLETE,this.onSplashComplete); 这两个侦听器都没有侦听到COMPLETE事件的发生。 FullyI • 2018-10-17 11:05 我用这个方法监听动画播放完成,有问题,会重复执行多次。...
来源: Laya_社区 发布时间: 20181011
...关的链接 提交 1 个回复 bpmf_d 赞同来自: // 失去焦点 Laya.stage.on(Laya.Event.BLUR,this,function(){}); // 获得焦点 Laya.stage.on(Laya.Event.FOCUS,this,function(){}); 可以试试这两个方法如果不行 就请提供一下可以复现的demo 2019-05-09 0 0 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20190509