大约有 382 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
Laya_社区(320) Laya2.0_文档(40) Laya3.0_文档(10) Laya2.0_示例(4) Laya_示例(4) Laya3.0_api(2) Laya2.0_api(2)
...#ffcccc"; //加载界面需要的资源文件 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 listP = new ListPageUI(); Laya.stage.addChild(listP); Laya.timer.once(1000,this,onAdd);//1000毫...
来源: Laya_社区 发布时间: 20170313
...行 this.txtin.overflow = "scroll"; //文本溢出 // this.txtin.skin = "atlas/comp/textinput.png"; //皮肤 this.txtin.bgColor = "#19a4f1"; //背景颜色 this.txtin.borderColor = "#f6ff03" //边框颜色 this.txtin.editable = true; //可编辑状态 // this.txtin.type = "password"; //输入框类...
来源: Laya3.0_文档 发布时间: 20251010
...//加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处...
来源: Laya2.0_文档 发布时间: 20210714
...没有更换,用的是spine官方的goblin例子,替换的图片全在atlas里// 程序入口 class GameMain{ private m_skeleton : Laya.Skeleton; private m_templet : Laya.Templet; constructor() { Laya.init(1334,750,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.CO...
来源: Laya_社区 发布时间: 20180126
...//加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择...
来源: Laya2.0_文档 发布时间: 20210715
...片路径的问题,难道我需要在这里自己手动修改为“res/atlas/assets/radio_2.png”吗? 2.还有一种方法是将assets资源目录下的图片再复制一份去bin目录,但那好麻烦啊。 有其他办法吗? ------------------------------------ 问题补充: 对图集...
来源: Laya_社区 发布时间: 20170627
...加载图集成功后,执行onLoaded回调方法 Laya.loader.load("./res/atlas/ui.atlas", Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个UI实例 comp = new ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(comp); //点击Tab选择按钮的处...
来源: Laya2.0_文档 发布时间: 20210715
...布 130*****113 • 2018-07-02 16:48 GET http://127.0.0.1:20544/game/res/atlas/UI/core.png 404 (Not Found) 这个图集设置在本地包里面,但是版本管理后此图集带MD5了,所以就会加载不到 Laya_Aaron • 2018-07-02 17:53 @130*****113:你用的是哪个版本引擎? 130*****...
来源: Laya_社区 发布时间: 20180702
...a.stage.scaleMode = Stage.SCALE_FIXED_WIDTH; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); console.log("myref-onloaded", testUI....
来源: Laya_社区 发布时间: 20170720
...样,就是图集的分辨率不对。附件已经给了,请注意res/atlas/comp.png 这张图的分辨率,比正确的图宽和高都多了像素 lookdczar • 2017-12-31 23:21 另外一个人也和我出现了一样的问题 https://ask.layabox.com/question/10105 lookdczar • 2017-12-31 23:3...
来源: Laya_社区 发布时间: 20171230