大约有 5 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0022 秒)
...sition = "absolute"; style.top = Laya.stage.height / Browser.pixelRatio + "px"; style.left = "0px"; style.width = Browser.width / Browser.pixelRatio + "px"; style.height = (Browser.height - Laya.stage.height) / Browser.pixelRatio + "px"; Browser.document.body.appendChild(mapDiv); } initMap() { const...
来源: Laya2.0_示例 发布时间: 20241117
...Rect(0, 0, w, h, "#FF7F50"); btn.graphics.fillText(labelText, w / 2, 8, "24px SimHei", "#FFFFFF", "center"); return btn; } // 播放音效 onPlaySound() { console.log("播放音效"); Laya.SoundManager.playSound("res/sounds/btn.mp3", 1, new Laya.Handler(this, this.onComplete)); } // 播放音乐 onP...
来源: Laya2.0_示例 发布时间: 20241117
...nput.style.zIndex = Laya.Render.canvas.zIndex + 1; input.style.width = "100px"; Laya.Browser.document.body.appendChild(input); return input; } fitDOMElements(){ for (let i = 0; i < arguments.length; i++) { let dom = arguments[i]; Laya.Utils.fitDOMElementInArea(dom, this.form, 100, i * (this.rowSpaci...
来源: Laya2.0_示例 发布时间: 20241117
...StartX, mStartY); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y: mStartY - 200 }, 1000, null, Handler.create(this, this.playEnd)) } playEnd() { mLabelSprite.removeSelf(); } } new Skeleton_SpineEvent();module laya { import EventDa...
来源: Laya2.0_示例 发布时间: 20241117
...FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } onDecreaseAlpha1(e) { const Event = Laya.Event; //移除鼠标单击事件 this.button1.off(Event.CLICK, this, this.onDecreaseAlpha1); //定时执行一次(间隔时间) Laya...
来源: Laya2.0_示例 发布时间: 20241117