大约有 88 项符合查询结果, 库内数据总量为 30,956 项。 (搜索耗时: 0.0044 秒)
... this._map.viewPortWidth || this.y < 0 || this.y > this._map.viewPortHeight) { this.hide(); } else { this.show(); } } else { ...
来源: Laya_社区 发布时间: 20220627
...Sprite.drawToTexture(dragCom,Laya.SpriteConst.TEXTURE,bounds.width, bounds.height, -bounds.x + view.x, -bounds.y + view.y); this._agent.graphics.drawTexture(this._agentTexture, (this._agent.width - bounds.width) * 0.5, (this._agent.height - bounds.height) * 0.5); } 附件 : --> 2021-09-11 添...
来源: Laya_社区 发布时间: 20210911
...g = this.padding; var startX = padding[3]; var textAlgin = "left"; var lineHeight = this.leading + this._charSize.height; var tCurrBitmapFont = this._currBitmapFont; if (tCurrBitmapFont) { lineHeight = this.leading + tCurrBitmapFont.getMaxHeight(); }; var startY = padding[0]; if (this._height > 0...
来源: Laya_社区 发布时间: 20180417
...oidplat,创建二维码 createQrCode(url:string, width:number, height:number):string { return this._bridge.call("createQrCode", url, width, height); } // 以下android代码 // JSBridge.javapublic static String createQrCode(final String content, final d...
来源: Laya_社区 发布时间: 20200729
... this.graphics.drawTexture(te, i * te.width, 0, te.width, te.height); } else { this.graphics.drawTexture(te, this.width - ((splitArr.length - i) * te.width), 0, te.width, te.height); ...
来源: Laya_社区 发布时间: 20170601
...t[i].getGraphicBounds(); this.playerUnit[i].pivot(bounds.width / 2, bounds.height / 2); this.playerUnit[i].scaleX=300/bounds.width; this.playerUnit[i].scaleY = 300/bounds.height; this.playerUnit[i].pos(200,400); Laya.stage.addChild(this.playerUnit[i]); } this.playerUnitReady+=1; } enemyUnitLoaded(){...
来源: Laya_社区 发布时间: 20200910
... m_Role.pos((Laya.stage.width - 27)/2,(Laya.stage.height - 75)/2); } else{ m_Role.pos((Laya.stage.width - 14)/2 + 15,(Laya.stage.height - 75)/2); } m_mapLayer.pos(...
来源: Laya_社区 发布时间: 20170921
...this._currBitmapFont.getMaxWidth(); this._charSize.height=this._currBitmapFont.getMaxHeight(); }else { var measureResult=Browser.context.measureText(Text._testWord); this._charSize.width=measureResult.wid...
来源: Laya_社区 发布时间: 20180526
...rt os import math from PIL import Image # if png pngs=[] maxWith = 0 maxHeight = 0 for idx in range(1,4): fname = os.path.join( os.path.curdir, "btn_{0}.png".format(idx)) if os.path.exists( fname) : im=Image.open( fname) pngs.append( im) maxWith = max( maxWith, im.width) maxHeight = max( maxHeigh...
来源: Laya_社区 发布时间: 20180721
...ure的 getpixels 得到有效数据。__proto.getPixels=function(x,y,width,height){ if (Render.isWebGL){ return RunDriver.getTexturePixels(this,x,y,width,height); }else { Browser.canvas.size(width,height); Browser.canvas.clear(); Browser.context.drawTexture(this,-x,-y,this.width,this.height,0,0); va...
来源: Laya_社区 发布时间: 20171201