大约有 297 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0048 秒)
...t.Create(); cat.on('attack', function () { self.Change(); }); this.animals.push(cat); } 2019-02-26 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 karin666 相关问题 Layabox 2.0 bate5 运行编译之后 bun...
来源: Laya_社区 发布时间: 20190226
...h - 1; i > -1; i--) { var item = this._cells[i]; item.removeSelf(); arr.push(item); } this._cells.length = 0; } for (var k = startY; k < numY; k++) { for (var l = 0; l < numX; l++) { [b][i] if (arr && arr.length) { [/i][/b] cell = arr.pop(); } else { cell = this.createItem(); } cell...
来源: Laya_社区 发布时间: 20180418
...ayer.addChild倒不是必须了,具体代码如下mapLayer._showGridList.push(sp);如果你用的ts的话还会报错说_showGridList不存在,需要在libs/LayaAir.d.ts里,找到class MapLayer extends Sprite这一行,在下面加上一行代码: class MapLayer extends Sprite { _mapData: A...
来源: Laya_社区 发布时间: 20170918
...ize.y, obj.sourceSize.w, obj.sourceSize.h)); loadedMap[url].url = url; map.push(url); } } delete _data.pics; 代码中斜线+加粗的代码则会去找版本号,并确定是否有需要添加的版本号,因为在ResourceManager的 public static function addVersionPrefix(originURL:String):...
来源: Laya_社区 发布时间: 20180415
...exactfit"; Laya.stage.screenMode = "horizontal"; var asset = []; asset.push({ url: ["../res/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.get...
来源: Laya_社区 发布时间: 20180808
...ttItem: HeadItem = new HeadItem; attItem.x = i * this.OFF_X; this.itemList.push(attItem); this.itemSpr.addChild(attItem); } let maskSp:Laya.Sprite = new Laya.Sprite; maskSp.graphics.drawRect(0,0,760,140,'#ffffff'); this.itemSpr.mask = maskSp; 测试 在无mask的情况下不会报错 开启mask之...
来源: Laya_社区 发布时间: 20170913
...(413132131) }) //还是在handler中去渲染,都会滚动不了 txArray.push(list);} storeTxList.array = txArray; Laya.stage.addChild(storeTxList); 悬赏找大神看问题 export default class StoreItem extends Laya.Box { constructor() { super(); this.size(195, 210); } } 附件 : --> ...
来源: Laya_社区 发布时间: 20190711
... *this._map.gridHeight; tSprite.initData(this._map); this._gridSpriteArray.push(tSprite); return tSprite; }这个根本是新建一个GridSprite,而不是返回现有的吧,这样貌似满足不了要求啊。请问这个问题要如何解决? 2016-12-28 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20161228
... itemList.pos(70,posY); data.push(itemList); posY = posY + 200; } let list = new Laya.List; list.width = this.itemList.width; list.height = this.itemList.height; ...
来源: Laya_社区 发布时间: 20170310
...: function showui() { showui.super(this); var arr2 = new Array(); arr2.push(this.dimg); this.dimg.on(Laya.Event.CLICK, this,apeclick2, arr2); } function apeclick2(that) { console.log("apeclick sucess"); that.skin = "../img/5.jpg"; console.log(that); that.zOrder = 1; } 2017-02-18 1 0 分享 微博 ...
来源: Laya_社区 发布时间: 20170217