大约有 5 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0041 秒)
...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); } function initMap(...
来源: Laya_示例 发布时间: 20241117
...nput.style.zIndex = Laya.Render.canvas.zIndex + 1; input.style.width = "100px"; Laya.Browser.document.body.appendChild(input); return input; } function fitDOMElements(){ for (var i = 0; i < arguments.length; i++) { var dom = arguments[i]; Laya.Utils.fitDOMElementInArea(dom, this.form, 100, i * (this...
来源: Laya_示例 发布时间: 20241117
...wRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } function onPlayMusic(e) { console.log("播放音乐"); SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } fu...
来源: Laya_示例 发布时间: 20241117
...graphics.clear(); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) } function playEnd() { mLabelSprite.removeSelf(); } })();module laya { import EventData = Laya.EventData; i...
来源: Laya_示例 发布时间: 20241117
...FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } function onDecreaseAlpha1(e) { //移除鼠标单击事件 button1.off(Event.CLICK, this, onDecreaseAlpha1); //定时执行一次(间隔时间) Laya.timer.once(3000, this, onC...
来源: Laya_示例 发布时间: 20241117