大约有 1,301 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)
Laya_社区(739) Laya2.0_文档(164) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(27)
...Button; import laya.ui.Panel; import laya.utils.Browser; import laya.utils.Handler; public class LayaUISample { public function LayaUISample() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height); //ui组件,除了image和clip外,其他皮肤均需要预加载资...
来源: Laya_社区 发布时间: 20170601
...s/ui.atlas", type: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded)); Laya.loader.create("ui/BG/play-bg.png", Laya.Handler.create(this, this.onLoaded)); 在微信小游戏里面可以显示,但是实体机子上就无法显示"ui/BG/play-bg.png"这一张...
来源: Laya_社区 发布时间: 20181105
...保证fnt与png文件同名 mBitmapFont.loadFont("res/test.fnt",new Laya.Handler(this,onLoaded)); function onLoaded(){ init(); } function init(){ //如果位图字体中,没放空格,最好设置一个空格宽度 mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(mFontName,mBitmapFont)...
来源: Laya2.0_文档 发布时间: 20201114
创建树Tree 该怎么回调mouseHandler 形参该传什么 附件 : --> 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: z298959 tree.mouseHandler=new Handler(this,onTreeHandle...
来源: Laya_社区 发布时间: 20170626
...Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定convertToBaiduCoord作用域 this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this); } } new WatchPosition(); ``` 由...
来源: Laya2.0_文档 发布时间: 20210714
...rogress$bar.png", type : Laya.Loader.IMAGE}, ] Laya.loader.load(res_array, Handler.create(null, onLoaded)); } function onLoaded() { var res_array = [ {url : "res/atlas/comp.atlas", type : Laya.Loader.ATLAS}, ] Laya.loader.load(res_array, Handler.create(null, onLoaded2)); } function onLoaded2() { Lay...
来源: Laya_社区 发布时间: 20180803
...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 在初始化时候使用canvas 或者WebGL 两种模式对使用引擎有什么区别? Laya的Scene和View什么区别? Image和Sprite在应用上的区别 VBOX HBOX 的文档...
来源: Laya_社区 发布时间: 20180306
...t; import laya.display.Sprite; import laya.display.Text; import laya.utils.Handler; public class GraphicCircle extends Sprite { private var mFontName:String="dataFont"; private var mBitmap:BitmapFont; public function GraphicCircle() { super(); Laya.init(550,400); mBitmap=new BitmapFont(); mBitmap.lo...
来源: Laya_社区 发布时间: 20161116
... Laya.SoundManager.playMusic("music/d1.mp3", 1, new Laya.Handler(this, this.onComplete2)); this.d2m = Laya.SoundManager; this.d2m.playSound("music/bg.mp3", 0, new Laya.Handler(this, this.onComplete2)); } onComplete2() { ...
来源: Laya_社区 发布时间: 20200925
...帧频信息 Laya.Stat.show(); //预加载 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading, null, false), Laya.Loader.ATLAS); }; //加载完成后 p.onAssetLoaded = function() {}; //加载进度 p.onLoading = function(num) { //先添...
来源: Laya_社区 发布时间: 20170803