大约有 1,766 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0072 秒)
Laya_社区(1394) Laya2.0_文档(82) Laya3.0_api(68) Laya2.0_api(57) Laya3.0_文档(53) laya_api(53) Laya_示例(32) Laya2.0_示例(27)
....stage.alignV = "middle"; Laya.stage.bgColor = "#ffffff"; this.gameLoading=new ui.GameLoadingUI(); //创建加载进度文本 var asset = [] asset[0] = { url: "res/atlas/run.json", type: Laya.Loader.ATLAS } asset[1] = { url: "res/bg.png", type: Laya.Loader.IMAGE } asset[2] = { url: "res/bg1.png", ty...
来源: Laya_社区 发布时间: 20170103
...te(this, onLoadComplete)); })(); function onLoadComplete() { progressBar = new ProgressBar("res/ui/progressBar.png"); progressBar.width = 400; progressBar.x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = Laya.stage.height / 2; progressBar.sizeGrid = "5,5,5,5"; progressBar.changeHandle...
来源: Laya2.0_文档 发布时间: 20210715
...rivate function onLoaded():void { //实例化Panel组件 var panel:Panel = new Panel(); //给panel添加背景色 panel.graphics.drawRect(0,0,100,100,"#ffcccc"); //给panel设置宽高 panel.size(100,100); //给panel设置滚动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将panel添加到...
来源: Laya2.0_文档 发布时间: 20210715
...节点和子节点点击的问题 这里是伪代码: var bigSprite = new sprite(); var smalla = new sprite(); bigSprite.addchild(smalla); var smallb = new sprite(); bigSprite.addchild(smallb); var smallc = new sprite(); bigSprite.addchild(smallc); 意思是一个大的sprite:bigSprite...
来源: Laya_社区 发布时间: 20160808
我就问一下一个遮罩的问题 const img:Laya.Image = new Laya.Image() img.skin = 'xxxx' // 图片url路径 this.addChild(img) const imgMask:Laya.Sprite = new Laya.Sprite() img.mask = imgMask 我就问一下,这个时候img是能显示还是不能显示? 答案是,如果Laya.init...
来源: Laya_社区 发布时间: 20190328
...示,但是ui的按钮可以点击。 我的代码: var _map:TiledMap = new TiledMap(); var viewRect:Rectangle = new Rectangle(0,0,8600,1800); _map.createMap("res/race.json",viewRect);我的游戏销毁的代码 _map.destroy(); _map = null; Laya.stage.addChild(new Plazz());//ui 经过排查后发...
来源: Laya_社区 发布时间: 20180503
... 在源码中未声明以下变量,Dialog 页面正常弹出var dialog = new Dialog(); dialog.show(); 2018-01-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: https://ask.layabox.com/question...
来源: Laya_社区 发布时间: 20180130
...uper(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMouse) } onOpened(param: any) { super.onOpene...
来源: Laya_社区 发布时间: 20171202
... var url = "http://192.168.8.35:80/singer/1.bmp"; var req = new laya.net.HttpRequest(); req.on(laya.events.Event.COMPLETE, this, cb_onSuccess); req.on(laya.events.Event.ERROR, this, cb_onFail); req.send(url); } // 下载jpg图片成...
来源: Laya_社区 发布时间: 20170103
... null; var bg2 = null; var box = null; function bg_rolling() { box = new laya.display.Sprite(); Laya.stage.addChild(box); bg1 = new laya.display.Sprite(); bg1.loadImage("res/bg1.png"); box.addChild(bg1); bg2 = new laya.display.Sprite(); bg2.loadImage("res/bg...
来源: Laya_社区 发布时间: 20160721