大约有 106 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0037 秒)
...'player/player.json',Laya.Handler.create(this, this.onLoaded),null); ----onComplate: Laya.Animation.createFrames(['player-left.png'], "walk-left"); 2016-06-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 kitecha...
来源: Laya_社区 发布时间: 20160610
...,而不是发布出来的图集再放到资源面板下!你可以看下comp.json,资源面板与发布资源后的对比!
来源: Laya_社区 发布时间: 20170613
...tlas的区别 在编辑模式下按F12导出时,bin/res/atlas下会生成comp.png和comp.atlas文件,但看教学视频中,没有生成.atlas文件,而是生成了.json文件,这两个文件有什么区别,两个文件的内容除了格式外是一样的,生成文件的不同是与什...
来源: Laya_社区 发布时间: 20180508
...布后生成在layaUI.max.all.ts文件中,我们直接使用它。 创建ComponentDemo.ts并设置默认程序,编写代码如下: ```typescript // 程序入口 class ComponentDemo{ /**包含tab与viewStack组件的测试页面**/ private comp:ui.ComponentDemoUI; constructor() { Laya.init(1334...
来源: Laya2.0_文档 发布时间: 20210715
...d']; var foodtxt = res.data[X]['n_number']; fooddata[X] = { food: { skin: 'comp/food' + foodid + '.png' }, food_txt: {text: foodtxt} // console.log(); } } console.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata; console.log(self.foodList.dat...
来源: Laya_社区 发布时间: 20181220
...SCALE; // Laya.stage.size(6000, 6000); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(sprite); } 上面这段代码如...
来源: Laya_社区 发布时间: 20170803
...EEN_HORIZONTAL; loadres(); function loadres(){ var res=[ {'url':'res/atlas/comp.json'} ] Laya.loader.load(res,Laya.Handler.create(this,Main)); } function Main(){ Laya.stage.addChild(new loginUI()); } })(); 附件 : --> 2017-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20171123
... file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/res/atlas/comp.atlas: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. Access to Image at 'file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/comp/classic_numbers_...
来源: Laya_社区 发布时间: 20180315
...这张图片。 但是我换个默认的图集Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.createView)); 却能拿到图集中的图片。是我打包图集的问题吗?这两个图集的.atlas文件都有在res下面啊。 2018-03-26 添加评论 免费帖 --> 分享 微博 ...
来源: Laya_社区 发布时间: 20180326
...布后生成在layaUI.max.all.js文件中,我们直接使用它。 创建ComponentDemo.js并设置默认程序,编写代码如下: ```javascript Laya.init(1334, 750,Laya.WebGL); Laya.stage.scaleMode = "full"; Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 ...
来源: Laya2.0_文档 发布时间: 20210714