大约有 717 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0120 秒)
Laya_社区(315) Laya3.0_api(93) Laya2.0_api(74) laya_api(62) Laya_示例(55) Laya2.0_示例(55) Laya2.0_文档(42) Laya3.0_文档(21)
...n.localToGlobal(new Laya.Point(this.lbtn.x,this.lbtn.y)); pt.x -=this.lbtn.width /2; pt.y -=120; var gd=GameData.userData; this.yqm.text=gd.invCode; this.dt.text="邀请次数 "+gd.invFriends+"/99" var iframe = Browser.document.createElement("iframe"); iframe.style.position ="absolute";//设置布...
来源: Laya_社区 发布时间: 20180626
...00); //这里没看出来是什么意思 this.txt.x=Laya.stage.width-this.txt.width>>1; this.txt.y=Laya.stage.height-this.txt.height>>1; this.txt.borderColor="#ffff00"; this.txt.fontSize=20; this.txt.color="#ffffff"; Laya.stage.addChild(this.txt)...
来源: Laya_社区 发布时间: 20170810
...ordChar drawtocanvCtx isAppUseNewInput langPacks Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY bgColor blendMode bold borderColor cacheAs color components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize editable filt...
来源: Laya3.0_api 发布时间: 20231115
...背景色 Laya.stage.bgColor = "#ffffff" this.sp = new Laya.Sprite(); let width = 660 let height = 420 this.sp.size(width, height) this.sp.pivot(Math.round(width / 2), Math.round(height / 2)) this.sp.graphics.drawCircle(0, 0, 5, "#000000") this.sp.graphics.drawRect(-this.sp.pivotX, -this.sp.pivotY, ...
来源: Laya_社区 发布时间: 20171230
...rite(); this._body.graphics.drawCircle(0, 0, this._objectInfo.templateInfo.width, "#ff0000"); this._body.width = this._objectInfo.templateInfo.width; this._body.height = this._objectInfo.templateInfo.height; this.addChild(this._body); this.on(Event.MOUSE_OVER, this, this.__onMouseOverHole); this.on(...
来源: Laya_社区 发布时间: 20180308
...浏览器不同而有偏差,实际应该要乘上 let ratio= Laya.stage.width/ Laya.Browser.width ;这个比例才正确 附件 : --> 2016-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同...
来源: Laya_社区 发布时间: 20160831
...dMap; public function TiledMapDemo() { //初始化舞台 Laya.init(Browser.width, Browser.height, WebGL); //创建TiledMap实例 tMap = new TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Rectangle = new Rectangle(0, 0, Browser.width, Browser.height); //创建TiledMap地图 tMap.crea...
来源: Laya2.0_文档 发布时间: 20210714
...log.scale(1, 1); Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 300, Ease.backOut, Handler.create(this, this.doOpen, [dialog])); } 2018-06-21 0 2 分享 微博 QZONE 微信 1553745787用户 赞同来自: class Dia...
来源: Laya_社区 发布时间: 20180620
...ublic saveImg() { let htmlCanvas: any = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); let canvas: any = htmlCanvas.sourse; canvas.toTempFilePath({ x: 100, y: 200, width: 50, height: 50, destWidth: 100, destHeight: 100, fileType: "png", quality: 1.0, success: (res) => { conso...
来源: Laya_社区 发布时间: 20200108
...derer.png) 1. Materials - Size - Element 2. Time 3. min Vertex Distance 4. Width 5. Color - Gradient 1. mode - Blend - Fixed 2. Color 3. Alpha 4. Location 6. Alignment - View - TransformZ 7. Texture Mode - Stretch
来源: Laya2.0_文档 发布时间: 20200822