大约有 297 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0270 秒)
...源卸载前和卸载后的资源状态: var assets:Array = []; assets.push("res/apes/monkey0.png"); assets.push("res/apes/monkey1.png"); assets.push("res/apes/monkey2.png"); assets.push("res/apes/monkey3.png"); Laya.loader.load(assets, Handler.create(this, onAssetsLoaded)); private function onAss...
来源: Laya_社区 发布时间: 20171019
...当前菜品下标 this.index = 0; //数据数组 foodArray = ; foodArray.push(new Food("菜品1", "1", 0)); foodArray.push(new Food("菜品2", "2", 1)); foodArray.push(new Food("菜品3", "3", 2)); foodArray.push(new Food("菜品4", "4", 3)); foodArray.push(new Food("菜品5", "5", 4)); var list:Li...
来源: Laya_社区 发布时间: 20180407
...版本1.7.20 下的load 调用2次 第二次 失效 var assets =[]; assets.push({url:"res/atlas/UI/Shop.atlas",type:Laya.Loader.ATLAS}) assets.push({url:"res/atlas/setting.atlas",type:Laya.Loader.ATLAS}) assets.push({url:"res/atlas/shop_buy.atlas",type:Laya.Loader.ATLAS}) assets.push({url:"res/atlas...
来源: Laya_社区 发布时间: 20181106
...g.clear(); if (w == 0 || h == 0) return; var points: any[] = []; points.push(0, h); points.push(0, 0); points.push(this._index, 0); points.push(this._index, h); // points.push(0, h); g.drawPoly(0, 0, points, "#FFFFFF"); this._fguiPro.value = Math.floor(this._index / w * 100); this._index += 8; //...
来源: Laya_社区 发布时间: 20221117
...Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; var skins = []; skins.push("../../res/ui/hslider.png", "../../res/ui/hslider$bar.png"); skins.push("../../res/ui/vslider.png", "../../res/ui/vslider$bar.png"); Laya.loader.load(skins, Handler.create(this, onLoadComplete)); })(); function onLoadCom...
来源: Laya_示例 发布时间: 20261115
...e.addChild(foodSprite); this.index = 0; foodsList = new Array(); foodsList.push(new Food("菜品1", "1", 0)); foodsList.push(new Food("菜品2", "2", 1)); foodsList.push(new Food("菜品3", "3", 2)); foodsList.push(new Food("菜品4", "4", 3)); foodsList.push(new Food("菜品5", "5", 4)); foodSprite...
来源: Laya_社区 发布时间: 20180405
...th]; path.length = 0; } function onMouseMove() { if (!isDown) return; path.push(Laya.stage.mouseX); path.push(Laya.stage.mouseY); } function onMouseUp() { isDown = false; canvasGraphics.drawPoly(0, 0, path.concat(), color); } function animate() { liveGraphics.clear(); liveGraphics.drawPoly(0, 0, pat...
来源: Laya_示例 发布时间: 20261115
...LE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); skins = []; skins.push("res/ui/hslider.png", "res/ui/hslider$bar.png"); skins.push("res/ui/vslider.png", "res/ui/vslider$bar.png"); Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { this.placeHSlider(); t...
来源: Laya2.0_示例 发布时间: 20261115
... var sNode:Vector3 = points[i - 1]; var tNode:Vector3 = points[i - 2]; vbs.push(fNode.x,fNode.y,fNode.z, 1,1,1,1,1); vbs.push(sNode.x,sNode.y,sNode.z, 1,1,1,1,1); vbs.push(tNode.x,tNode.y,tNode.z, 1,1,1,1,1); ibs.push(count++, count++, count++); 附件 : --> 2018-03-29 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20180329
...Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; var skins = []; skins.push("../../res/ui/hscroll.png", "../../res/ui/hscroll$bar.png", "../../res/ui/hscroll$down.png", "../../res/ui/hscroll$up.png"); skins.push("../../res/ui/vscroll.png", "../../res/ui/vscroll$bar.png", "../../res/ui/vscroll$do...
来源: Laya_示例 发布时间: 20261115