大约有 4 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0016 秒)
...0.8 }, 300); } else { // 如果未触发hold,终止触发hold Laya.timer.clear(this, this.onHold); } Laya.stage.off(Event.MOUSE_UP, this, this.onApeRelease); } } new Interaction_Hold();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Texture =...
来源: Laya2.0_示例 发布时间: 20241118
...een = Laya.Tween, Ease = Laya.Ease; character.pos(100, 50); tween && tween.clear(); tween = Tween.to(character, { x: 350, y: 250 }, duration, Ease[list.selectedItem]); } createDurationCrontroller() { const Event = Laya.Event; let durationInput = this.createInputWidthLabel("Duration:", '2000', 400, 1...
来源: Laya2.0_示例 发布时间: 20241118
...onTweenComplete() { this.evalBgColor(); } renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, this.getHexColorString()); } getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChannels.g = 0; //o...
来源: Laya2.0_示例 发布时间: 20241118
...is.mStartX; this.mLabelSprite.y = this.mStartY; this.mLabelSprite.graphics.clear(); this.mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(this.mLabelSprite, { y:this.mStartY - 200 }, 1000, null,Handler.create(this,this.playEnd)) } private playEnd():v...
来源: Laya2.0_示例 发布时间: 20241118