大约有 1,567 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0052 秒)
Laya_社区(1103) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(43) Laya3.0_api(11) Laya2.0_api(2)
...BloodBar = function() { bloodBar = new Sprite(); bloodBar.loadImage("../../res/cartoon2/blood_1_r.png"); bloodBar.x = 20; this.addChild(bloodBar); } Character.prototype.createNameLabel = function() { nameLabel = new Text(); nameLabel.color = "#FFFFFF"; nameLabel.text = "Default"; nameLabel.fontSize ...
来源: Laya_示例 发布时间: 20241117
...、LayaAirIDE让项目开发更高效。let amount = 500, character1 = [ "res/cartoon2/yd-6_01.png", "res/cartoon2/yd-6_02.png", "res/cartoon2/yd-6_03.png", "res/cartoon2/yd-6_04.png", "res/cartoon2/yd-6_05.png", "res/cartoon2/yd-6_06.png", "res/cartoon2/yd-6_07.png", "res/cartoon2/yd-6_08.png", ], ...
来源: Laya2.0_示例 发布时间: 20241117
...类似白鹭的加载方式 第一次发,不足之处还请见谅 class RES extends Laya.EventDispatcher{ // 资源组 public static groups: any; // 资源 public static resources: any; // 完成加载资源配置文件 public static ONLOADEDRESJSON: string = "onLoadedResJson"; // 资源配置文...
来源: Laya_社区 发布时间: 20161011
... 代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager(); this.s_instance.init(); } return this.s_in...
来源: Laya_社区 发布时间: 20171124
...的 然後思路大概就是下面的codeclass LoaderManager { private progressUI: UIBase; private token; constructor(token) { Laya.loader.load([{ url: "res/ui/LoadProgress.fui", type: Loader.BUFFER }], Handler.create(this, this.loadProgress)) this.token = token; } public loadProgress() { this.progr...
来源: Laya_社区 发布时间: 20171204
...问题吗 //设置版本控制类型为使用文件名映射的方式 Laya.ResourceVersion.type = Laya.ResourceVersion.FILENAME_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, beginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/...
来源: Laya_社区 发布时间: 20180710
...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$down.png", ".....
来源: Laya_示例 发布时间: 20241117
...age.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; 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$down.png", "res/ui/vscroll$up.png"); Laya.loader.l...
来源: Laya2.0_示例 发布时间: 20241117
...aya.init(550, 400); // 加载一张png类型资源 Laya.loader.load("../../res/apes/monkey0.png", Handler.create(this, onAssetLoaded1)); // 加载多张png类型资源 Laya.loader.load( ["../../res/apes/monkey0.png", "../../res/apes/monkey1.png", "../../res/apes/monkey2.png"], Handler.create(this, o...
来源: Laya_示例 发布时间: 20241117
...tage.bgColor = "#232628"; // 加载一张png类型资源 Laya.loader.load("res/apes/monkey0.png", Handler.create(this, this.onAssetLoaded1)); // 加载多张png类型资源 Laya.loader.load( ["res/apes/monkey0.png", "res/apes/monkey1.png", "res/apes/monkey2.png"], Handler.create(this, this.onAssetLo...
来源: Laya2.0_示例 发布时间: 20241117