大约有 25 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0021 秒)
...a.Browser; var Handler = Laya.Handler; var picW = 824; var picH = 484; var console; var shakeCount = 0; (function() { Laya.init(picW, Browser.height * picW / Browser.width); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; showShakePic(); showConsoleText(); startShake(); })(); function showShakePic() { v...
来源: Laya_示例 发布时间: 20241118
..., this, onError); })(); function onAssetLoaded(texture) { // 使用texture console.log("加载结束"); } // 加载进度侦听器 function onLoading(progress) { console.log("加载进度: " + progress); } function onError(err) { console.log("加载失败: " + err); } })();module laya { import Event...
来源: Laya_示例 发布时间: 20241118
... xmlValue = "item aitem bsomethings..."; proessXML(xmlValueContainsError); console.log("\n"); proessXML(xmlValue); } function proessXML(source) { try { var xml = Utils.parseXMLFromString(source); } catch (e) { console.log(e.massage); return; } printDirectChildren(xml); } function printDirectChildren...
来源: Laya_示例 发布时间: 20241118
...setLoaded), null, null, 2, false); })(); function onAssetLoaded(texture) { console.log(texture.source); // 恢复默认并发加载个数。 if (++numLoaded == 3) { Laya.loader.maxLoader = 5; console.log("All done."); } } })();module laya { import Texture = Laya.Texture; import Handler = Laya.Handle...
来源: Laya_示例 发布时间: 20241118
...); Laya.stage.addChild(button); return button; } function onPlayMusic(e) { console.log("播放音乐"); SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } function onPlaySound(e) { console.log("播放音效"); SoundManager.playSound("../../res/sounds/btn.mp3", 1,...
来源: Laya_示例 发布时间: 20241118
...应...\n"; Laya.stage.addChild(logger); } function onHttpRequestError(e) { console.log(e); } function onHttpRequestProgress(e) { console.log(e) } function onHttpRequestComplete(e) { logger.text += "收到数据:" + hr.data; } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; i...
来源: Laya_示例 发布时间: 20241118
...应...\n"; Laya.stage.addChild(logger); } function onHttpRequestError(e) { console.log(e); } function onHttpRequestProgress(e) { console.log(e) } function onHttpRequestComplete(e) { logger.text += "收到数据:" + hr.data; } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; i...
来源: Laya_示例 发布时间: 20241118
...); timeLine.on(Event.LABEL, this, this.onLabel); } function onComplete() { console.log("timeLine complete!!!!"); } function onLabel(label) { console.log("LabelName:" + label); } function keyDown(e) { switch(e.keyCode) { case Keyboard.LEFT: timeLine.play("turnLeft"); break; case Keyboard.RIGHT: timeL...
来源: Laya_示例 发布时间: 20241118
..." + "(" + modes[index] + ")"; } function onClick(e) { //输出坐标信息 console.log("mouse:", Laya.stage.mouseX, Laya.stage.mouseY); } function onResize() { //输出当前适配模式下的stage大小 console.log("size:", Laya.stage.width, Laya.stage.height); } })();module laya { import Sprite = ...
来源: Laya_示例 发布时间: 20241118
...cker); onChangeColor(colorPicker); } function onChangeColor(colorPicker) { console.log(colorPicker.selectedColor); } })();module laya { import Stage = Laya.Stage; import ColorPicker = Laya.ColorPicker; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export cl...
来源: Laya_示例 发布时间: 20241118