大约有 549 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0065 秒)
...ayabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); function clickHandler(){ var url = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获取...
来源: Laya2.0_文档 发布时间: 20210714
...单元格的位置 this._list.tweenTo(this._list.page, 500, isFresh ? Laya.Handler.create(this, this.refresh) : null);核心就这句,this._list.page在滑动的距离达到某个值时,就会调用,翻到下一页,左右翻页按钮去调用没问题,位置都是正确的,只有在按...
来源: Laya_社区 发布时间: 20180911
...atlas方式图集使用示例 Laya.loader.load("./res/test/c1.atlas", Laya.Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文...
来源: Laya2.0_文档 发布时间: 20210715
...as方式图集使用示例 Laya.loader.load("./res/atlas/test.atlas", Laya.Handler.create(this, this.onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件...
来源: Laya2.0_文档 发布时间: 20210714
...sh({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry(); Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initVie...
来源: Laya_社区 发布时间: 20180308
...all.y = -200 Laya.Tween.to( ball,{y: 1500 } ,5000,Laya.Ease.linearOut,Laya.Handler.create(this,this.removeball,[ball])); Laya.stage.addChild( ball ); } } public removeball( ball:Laya.Sprite ){ Laya.stage.removeChild(ball); // console.log("rmove ball") } public getObj():Laya.Sprite { for( let i:numbe...
来源: Laya_社区 发布时间: 20180226
...//atlas方式图集使用示例 Laya.loader.load("./res/atlas/test.atlas", Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的...
来源: Laya2.0_文档 发布时间: 20210714
...p.ZIP, constructParams:["Folder1/Player1.lh","Folder2/Player2.lh"]}], Laya.Handler.create(this, () => { let player1 = Laya.loader.getRes("res/3d/Player/Folder1/Player1.lh").clone(); let player2 = Laya.loader.getRes("res/3d/Player/Folder2/Player2.lh").clone(); }));[/code]Laya 3.x版本 暂时未...
来源: Laya_社区 发布时间: 20230316
...cheFile || isSaveFile) { MiniFileMgr.copyFile(filePath, readyUrl, new Laya.Handler(MiniFileMgr,MiniFileMgr.copyFileCallback,[callBack,data]), encoding, isAutoClear); } else callBack != null && callBack.runWith([0, data]); } else callBack != null && callBack.runWith([0, data]); }, fai...
来源: Laya_社区 发布时间: 20200103
...ad(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } } onComplete(): void { //初始化rank排行榜 var rank = new BigR...
来源: Laya_社区 发布时间: 20190307