大约有 9 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0029 秒)
...tipContainer); return; } let step = guideSteps[guideStep++]; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000"); interactionArea.graphics.clear(); interactionArea.graphics.drawCircle(step.x, step.y, step.radius, "#000000"); tipContainer.graphics.clear(); tipConta...
来源: Laya2.0_示例 发布时间: 20241118
...ey = (this.flag = !this.flag) ? monkey1Res : monkey2Res; this.ape.graphics.clear(); this.ape.graphics.drawTexture(monkey, 0, 0); this.ape.size(monkey.width, monkey.height); } } new Sprite_SwitchTexture();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Text...
来源: Laya2.0_示例 发布时间: 20241118
...sGraphics.drawPoly(0, 0, path.concat(), color); } animate() { liveGraphics.clear(); liveGraphics.drawPoly(0, 0, path, color); } } new PIXI_Example_21();module laya { import Graphics = Laya.Graphics; import Sprite = Laya.Sprite; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class P...
来源: Laya2.0_示例 发布时间: 20241118
...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
...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
...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
...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
... is ArrayBuffer) { trace(new Byte(message).readUTFBytes()); } socket.input.clear(); } private function onConnectError(e:Event=null):void { trace("error"); } } }
来源: Laya2.0_示例 发布时间: 20241118
...ak; case this.nameArr[2]: this.drawImage.skin = null; this.drawSp.graphics.clear(); this.drawSp.graphics.drawRect(0,0,this.drawSp.width,this.drawSp.height,"#ff0000"); break; } } } //激活启动类 new Sprite_ScreenShot(); package { import laya.d3.core.Sprite3D; import laya.display.Stage; import ...
来源: Laya2.0_示例 发布时间: 20241118