大约有 1,326 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0052 秒)
...本组件 this.text = new Laya.Text(); this.text.pos(300, 260); this.owner.addChild(this.text); // 滚动条皮肤资源 var skins: any[] = []; skins.push("atlas/comp/hscroll.png", "atlas/comp/hscroll$bar.png", "atlas/comp/hscroll$down.png", "atlas/comp/hscroll$up.png"); Laya.loader.load(skins).then...
来源: Laya3.0_文档 发布时间: 20240910
...qb.on(Laya.Event.STOPPED,this,this.changeSkin); this.owner.addChild(this.skebqb); this.skebqb.pos(500, 600); this.changeSkin(); } changeSkin(){ this.skebqb.replaceSlotSkinName("chuandiwu","","bianbian"); ...
来源: Laya_社区 发布时间: 20201231
...进行设置点击事件 var gameOver = new GameOverUI(); this.SceneMajor.addChild(gameOver); gameOver.btRetry.on('click', this, function(){ window.location.reload(); });当然因为按钮都是小元素, 默认情况下会被打包成atlas文件 需要在代码执行前先下载完毕这个图片...
来源: Laya_社区 发布时间: 20180116
...本组件 this.text = new Laya.Text(); this.text.pos(300, 260); this.owner.addChild(this.text); // 滚动条皮肤资源 var skins: any[] = []; skins.push("atlas/comp/vscroll.png", "atlas/comp/vscroll$bar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png"); Laya.loader.load(skins).then...
来源: Laya3.0_文档 发布时间: 20240910
...cle2D(settings); sp.emitter.start(); sp.play(); sp.x = 90; sp.y = 55; this.addChild(sp); } 还是会有几种颜色,我希望跟在IDE里预览的时候效果一样 只有一种 我这样设置再传入Particle2D不对吗? settings.colorComponentInter = true; 2016-12-30 添加评论 免费帖 --...
来源: Laya_社区 发布时间: 20161230
...10, 10); sprite0.mouseEnabled = true; sprite0.name = 'sprite0'; Laya.stage.addChild(sprite0); sprite0.on(Event.CLICK, this, handler_click); 怎么让sp透明区域不可点,有像素的地方才能接受到事件; hitArea,目前只支持圆形,矩形,多边形,而sp绘制的是一个不规...
来源: Laya_社区 发布时间: 20170428
...</span><br/><span>BBBBBBBBBBB</span>"; Laya.stage.addChild(html3); 2016-12-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jiuwufeilong 相关问题 发起问题须知,必看!!!不按提问规则的...
来源: Laya_社区 发布时间: 20161213
...BootClass", MyPage2UI); var UI = new MyBootClass(); Laya.stage.addChild(UI); } function MyBoot() { MyBoot.super(this); this.MyTab.selectHandler = new Laya.Handler(this, onSelect, null, false);//设置 tab 的选择项发生改变时执行的处理器。 console.log("A1...
来源: Laya_社区 发布时间: 20160722
...aya.init(600, 400); var scene=Laya.Scene.load("main/SMain.ls"); Laya.stage.addChild(scene); 错误信息: Warning!,this class[MiniAdpter] already exist: Object Error: LoaderManager:unknown file(E:/LayaAir/ZJKZWDT/bin/main/SMain.ls) extension with: ls. at LoaderManager.__proto._create (f...
来源: Laya_社区 发布时间: 20180523
...der.ATLAS) })(); function onLoaded(){ var _start = new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function start(){ start.super(this); } Laya.class(start,"start",_super); //var _proto = Game.prototype; return start; })(ui.startUI) 2018-12-20 添加评论 免费帖 -...
来源: Laya_社区 发布时间: 20181220