大约有 1,489 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0074 秒)
...on(dialog,closeOther){ (closeOther===void 0)&& (closeOther=false); if (closeOther)this.removeChildren(); if (dialog.popupCenter)this._centerDialog(dialog); this.addChild(dialog); if (dialog.isModal || this._$P["hasZorder"])this.timer.callLater(this,this._checkMask); this.popupEffect &&am...
来源: Laya_社区 发布时间: 20170807
... itemComplete:Sprite3D = Laya.loader.getRes(_path); if(itemComplete == null || itemComplete.loaded == false){ var groupName:String = null; if(isGroup == true){ groupName = url; ...
来源: Laya_社区 发布时间: 20180601
...); } init( box: GunBox, doll_item: DollItem, doll_area: Area ):void { // if(!this._body_ani) // { // this._body_ani = new Laya.Animation(); // this.addChild(this._body_ani); // } // this._body_ani.play(0, true, doll_item.animation_name); this._box = box; this._fly_site.w = this._box._area.w - ...
来源: Laya_社区 发布时间: 20180515
... 1. 改源码: 修改 WebGLContext.ts 的 static setBlendFunc 把 if (force || sFactor !== WebGLContext._sFactor || dFactor !== WebGLContext._dFactor) { 改成 if(true){ 2. 改laya.core.js 找到 869行左右的 static setBlendFunc(gl, sFactor, dFactor) 函数 把 if (sFactor !...
来源: Laya_社区 发布时间: 20191215
...抛出,出错 ---------------------------------- __proto.event 方法中 if (listener) { (data != null) ? listener.runWith(data) : listener.run(); } 出错,原因listener.method不是一个方法,看了下listener.caller就是注册的方法,修改为如下就可以正常抛出事件,请...
来源: Laya_社区 发布时间: 20170120
... var needWordWrapOrTruncate:Boolean = wordWrap || this.overflow == HIDDEN; if (needWordWrapOrTruncate) { var wordWrapWidth:Number = getWordWrapWidth(); } if (_currBitmapFont) { _charSize.width = _currBitmapFont.getMaxWidth(); _charSize.height = _currBitmapFont.getMaxHeight(); } else { var measureRes...
来源: Laya_社区 发布时间: 20190213
... Laya.Browser.document.title = 'GG游戏; if (Laya.Browser.onPC) { //设置舞台缩放模式 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; ...
来源: Laya_社区 发布时间: 20181213
...的代码中可以考虑封装下面这段代码 var docElm=document.body; if (docElm.requestFullscreen){ docElm.requestFullscreen(); }else if (docElm.msRequestFullscreen){ docElm.msRequestFullscreen(); }else if (docElm.mozRequestFullScreen){ docElm.mozRequestFullScreen()...
来源: Laya_社区 发布时间: 20160126
...做判断呢? 如题,正确的代码是:onLoop():void{ this.y+=50; if (this.bg1.y+this.y>=852) { this.bg1.y-=852*2; } if (this.bg2.y+this.y>=852) { this.bg2.y-=852*2; } }我尝试的代码是: onLoop():void{ this.y+=50; if (this.bg1.y>=852) { this.y-=852*2; this.bg1.y-=852*2; } if (...
来源: Laya_社区 发布时间: 20180114
... Laya.Browser.document.title = 'GG游戏; if (Laya.Browser.onPC) { //设置舞台缩放模式 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; ...
来源: Laya_社区 发布时间: 20181202