大约有 6 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0049 秒)
...e = 100; Laya.stage.addChild(panel); // 0为说明 1为排行 内容部分 switch(num){ case 0: panel.addChild(_this.descriptionContent()); // 说明 内容 break; case 1: panel.addChild(_this.rankingContent()); // 排行榜 break; } } 附件 : --> 2018-03-31 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20180331
...rivate function onClick(e:Event):void { switch(e.currentTarget) { case btn1: show(); break; case btn2: ...
来源: Laya_社区 发布时间: 20180425
...):void { if (screenPos) { switch (_map.orientation) { case TiledMap.ORIENTATION_ISOMETRIC: screenPos.x = _map.width / 2 - (tileY - tileX) * _tileWidthHalf; ...
来源: Laya_社区 发布时间: 20161109
...0); Laya.stage.addChild(txt); txt.on(Laya.Event.CLICK, this, function(e) { switch (e.type) { case Laya.Event.CLICK: gameStart(); break; } }); //注册鼠标点击 加入一个显示得分的函数,分数由时间和出错次数决定,这个函数将会在游戏gameStart函数中调用,因为...
来源: Laya_社区 发布时间: 20160623
...ht = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 = Laya.loader.getRes("res/hp_bar.png"); break; } this.bg = new Sprite(); this.bar = new Sprite();...
来源: Laya_社区 发布时间: 20160803
...6), 0, 0, 32, 96); this.rightBg.width = 32; this.addChild(this.rightBg); } switch(type){ case 1: this.rightBg.visible = false; this.bg.graphics.drawTexture(this.bgTexture, 0, 0, 960, 96); break; default: //随机计算一个宽度 当然 最小是3倍 以防难度太难 var _w = 32 * (3 + parseInt(1...
来源: Laya_社区 发布时间: 20160801