大约有 82 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
... Laya.loader.create(["Main/SMain.ls","Role/Role.lh"],Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); } 输出结果: 0.19186599730944645 0.525199...
来源: Laya_社区 发布时间: 20180619
...id 0)&& (loop=true); (name===void 0)&& (name=""); if (name)this._setFramesFromCache(this._url+"#"+name); this._isPlaying=true; this.index=((typeof start=='string'))? this._getFrameByLabel(start):start; this.loop=loop; if (this._frames && this._frames.length > 1 && ...
来源: Laya_社区 发布时间: 20161006
Button点击函数逻辑bug onMouse(e) { if (this.toggle === false && this._selected) return; if (e.type === Laya.Event.CLICK) { this.toggle && (this.selected = !this._selected); this._clickHandler && this._clickHandler.run(); return; } !this._selected && (this.state...
来源: Laya_社区 发布时间: 20191112
...印显示btn1_btn为null console.log(btn1_btn); // btn1_btn.label="first"; this.myvbox.addChild(btn1); var btn2=new ui.test.view_btnUI(); var btn2_btn:laya.ui.Button=btn2.getChildByName("btn") as laya.ui.Button; // btn2_btn.label="second"; this.myvbox.addChild(btn2); var btn3=new ui.test.view_btnUI(...
来源: Laya_社区 发布时间: 20170725
...能播放动画,使用新版动画系统。 //获取角色动画组件 this.roleAni = this.roleModel.getComponentByType(Laya.Animator); 1、unity中Legacy类型 roleAni输出为NULL 2、unity中Generic类型 roleAni输出不为NULL,this.roleAni.play("Walk");但是不能播放 附件 : --> 2018-0...
来源: Laya_社区 发布时间: 20180525
...e.bgColor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this._testTip=new TestTipsUI();//务必在Laya.init后去new实例,不可直接在全局变量处实例化 //切记,无论何种鼠标提示方式,...
来源: Laya_社区 发布时间: 20161115
...gs/img_10103.png"; fish.scoreItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.s...
来源: Laya_社区 发布时间: 20180516
...这张图片设置var , 但是我发现在List下设置var是无效的,this.as.width = null; 问题2: 一段文字中设置不同的字体和颜色,我能想到的就是富文本。 但是在List下的富文本好像有点问题,用数组赋予富文本文字无效,或是不显示。 求...
来源: Laya_社区 发布时间: 20180929
Tab组件如何通过js控制选中 this._tab._selectedIndex = 0 _tab为在UI编辑器下定义的var值 这样操作不能实现么 2017-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞...
来源: Laya_社区 发布时间: 20171214
...点击事件第二次点击不生效 list.selectHandler = Handler.create(this,onRender, null, false);//滚动列表点击事件 private function onRender(index:int):void{ list.setItem(lastSelect,arrConver(lastSelect,false));//取消选中效果 list.setItem(index,arrConver(index,true));//添加选...
来源: Laya_社区 发布时间: 20171129