大约有 7 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0019 秒)
...for (var i: number = 0; i < 10; ++i) { data.push("../../res/ui/listskins/1.jpg"); data.push("../../res/ui/listskins/2.jpg"); data.push("../../res/ui/listskins/3.jpg"); data.push("../../res/ui/listskins/4.jpg"); data.push("../../res/ui/listskins/5.jpg"); } list.array = data; } private updateItem(cell...
来源: Laya_示例 发布时间: 20241118
... = ["do not exist", "../../res/fighter/fighter.png", "../../res/legend/map.jpg"]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); // 侦听加载失败 Laya.loader.on(Event.ERROR, this, onError); })(); function onAssetLoaded(tex...
来源: Laya_示例 发布时间: 20241118
...dialog = Laya.stage.addChild(new Laya.Image("../../res/cartoon2/background.jpg")); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), false, false); camera.transform.translate(new Laya.Ve...
来源: Laya_示例 发布时间: 20241118
...(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/ground_01.jpg")); customMaterial.setDiffuseTexture2(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/ground_02.jpg")); customMaterial.setDiffuseTexture3(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/gro...
来源: Laya_示例 发布时间: 20241118
...iddle"; //实例一个背景 var bg = new Image(); bg.skin = "../../res/bg.jpg"; Laya.stage.addChild(bg); //实例一个文本 txt = new Text(); txt.text = "点击我切换适配模式(noscale)"; txt.bold = true; txt.pos(0, 200); txt.fontSize = 30; txt.on("click", this, onTxtClick); Laya.stage.addCh...
来源: Laya_示例 发布时间: 20241118
.../ create a background texture Laya.stage.loadImage("../../res/pixi/laserBG.jpg"); Laya.stage.frameLoop(1, this, animate); })(); function animate() { if (tick > frequency) { tick = 0; // iterate through the dudes and update the positions var laser = new Sprite(); laser.loadImage("../../res/pixi/laser...
来源: Laya_示例 发布时间: 20241118
...ZONTAL; Stat.enable(); Laya.stage.loadImage("../../res/cartoon2/background.jpg", 0, 0, 1280, 900); createCharacters(); text = new Text(); text.zOrder = 10000; text.fontSize = 60; text.color = "#ff0000" Laya.stage.addChild(text); Laya.timer.frameLoop(1, this, gameLoop); })(); function createCharacter...
来源: Laya_示例 发布时间: 20241118