大约有 254 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0044 秒)
Laya_社区(200) Laya2.0_示例(15) Laya_示例(14) Laya2.0_文档(13) Laya3.0_api(5) Laya3.0_文档(3) laya_api(2) Laya2.0_api(2)
...Map)); } loadedMap(){ this.sp=new Laya.Sprite(); this.sp.graphics.drawRect(0,0,100,100,"#FF0000"); var mapLayer = this.tiledMap.getLayerByIndex(1); console.info(mapLayer.layerName); this.sp.pos(0,0); mapLayer._childs[0].addChild(this.sp); } } new GameInfo(); 遇到的...
来源: Laya_社区 发布时间: 20171125
...件 var panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel设置滚动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化I...
来源: Laya2.0_文档 发布时间: 20210715
... var _mDown:Sprite=new Sprite(); _mTop.graphics.drawRect(0,0,1,1,"#0"); 3.叠加效果 BlendMode.ADD,apk中无效 4.MouseManager.as 运行 时报错,“ touchemoves is undefined” case "touchmove": va...
来源: Laya_社区 发布时间: 20170510
...l: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel设置滚动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化I...
来源: Laya2.0_文档 发布时间: 20210715
...tor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height,...
来源: Laya_社区 发布时间: 20180315
...on createLoading():Sprite { _loadingBg = new Sprite(); _loadingBg.graphics.drawRect(0, 0, _list.width, _list.height, "#000000"); _loadingBg.alpha = .7; _loadingBg.size(_list.width, _list.height); _loadingBg.mouseThrough = true; return _loadingBg; } } } import laya.display.Sprite; class RecordItem ex...
来源: Laya_社区 发布时间: 20170323
...s(200, 0); let sp = new Sprite() sp.graphics.drawRect(0, 0, 50, 50, '#ffff000') ape.mask = sp })); } })(); 右边的形状明显不是正方形 附件 : --> 2017-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20171220
... 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添加到stage上 Laya.stage.addChild(panel); //实例化Image组...
来源: Laya2.0_文档 发布时间: 20210715
...apLayer:MapLayer=tiledMap.getLayerByIndex(2); sp=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); sp.zOrder=1000; mapLayer.addChild(sp); Laya.timer.loop(200,this,onLoop); } private var aaa:Number=0; private var bbb:Number=0; private function onLoop():void { aaa--; sp.x++; tiledMa...
来源: Laya_社区 发布时间: 20170525
...ce); reference.pos(100, 100); reference.size(600, 400); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this,...
来源: Laya_社区 发布时间: 20200909