大约有 40 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
...rtCharsByAlign(align: string): void { let alignConfig = XUtils.TEXT_ALIGN; switch (align) { case alignConfig.CENTER: this.sortOnCenter(); break; case alignConfig.RIGHT: this.sortOnRight(); break; case alignConfig.LEFT: default: this.sortOnLeft(); break; } } /** * 排列字符(适合从左到右)...
来源: Laya_社区 发布时间: 20180302
...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
....addChild(charSp); return charSp; } // 设置位置 private setCharsPos(){ switch (this._posType){ case BPFont.LEFT: this.setCharsPosOnLeft(); break; case BPFont.RIGHT: this.setCharsPosOnRight(); break; case BPFont.CENTER: this.setCharsPosOnCenter(); break; } } // 左对齐 private setCharsPosOnLeft...
来源: Laya_社区 发布时间: 20161014
... ```typescript function(e:Event) { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.gar...
来源: Laya2.0_文档 发布时间: 20210715
...on)) ```typescript function(e:Event):void { _castType++; _castType %= 2; switch (_castType) { case 0: (e.target as Button).label = "释放显存"; loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (_scene)//_scene不为空表示场景已加载完成 garbageCollection(); b...
来源: Laya2.0_文档 发布时间: 20210715
... for (var name in msg) { if (protos[name]) { var proto:any = protos[name]; switch (proto.option) { case "optional": case "required": buffer.writeArrayBuffer(this.encodeTag(proto.type, proto.tag)); this.encodeProp(msg[name], proto.type, protos, buffer); break; case "repeated": if (!!msg[name] &&a...
来源: Laya_社区 发布时间: 20180119
...cript function(e:Laya.Event):void { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.ga...
来源: Laya2.0_文档 发布时间: 20210715
...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
...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
.../ ERROR — 构建时遇到错误 // FATAL — 遇到无可修复的错误 switch (event.code) { case 'START': tS = Date.now(); console.log(`Starting 'rebuild'...`); break; case 'END': console.log(`Finished 'rebuild' after ${((Date.now() - tS) / 1000).toFixed(2)} s`); break; case 'ERROR': case 'FATA...
来源: Laya_社区 发布时间: 20201223