大约有 120 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0052 秒)
...tage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; Laya.stage.addChild(soundButton); //创建一个Sprite充当音乐播放按钮 var musicButton: Sprite = this.createButton("播放音乐"); musicButton.x = soundButton.x + gap + soundButton...
来源: Laya_社区 发布时间: 20190421
...(); graphics.alpha(0.6); graphics.drawRect(0,0,Laya.stage.width,Laya.stage.height,'#000000'); graphics.restore(); sprite.graphics=graphics; 2018-12-19 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 dz5566 相关问题 iphoneX环境下新...
来源: Laya_社区 发布时间: 20181218
...ow.innerWidth;' ); __JS__( 'stageH = Laya.window.innerHeight;' ); (stageW > 0) && IFlash.setSize(stageW, stageH); } private function init(e:Event = null):void { removeEventListener(Eve...
来源: Laya_社区 发布时间: 20170317
...ler.create(this,aa)); function aa(texture){ bg.pivot(texture.width,texture.height); bg.alpha = 1; bg.rotation = 10; } 2018-05-19 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 智力猫 相关问题 sprite旋转...
来源: Laya_社区 发布时间: 20180519
...Webgl = laya.webgl.WebGL; var W = Laya.Browser.width; var H = Laya.Browser.height; Laya.init(W,H,Webgl); /*Laya.stage.scaleMode = Laya.stage.SCALE_SHOWALL; Laya.stage.alignH = Laya.stage.ALIGN_CENTER; Laya.stage.alignV = Laya.stage.ALIGN_MIDDLE; Laya.stage.screenMode = Laya.stage.SCREEN_NODE;*/ this...
来源: Laya_社区 发布时间: 20180915
...onstructor() { //初始化舞台 Laya.init(Laya.Browser.width,Laya.Browser.height,Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(); //创建TiledMap地图 this.tMap.createMap("res/TiledMap/o...
来源: Laya2.0_文档 发布时间: 20210715
... Main { constructor() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Stat.show(); //棋子动画 this.genSpine("res/spine/ludo_qizidongzuo.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) => { //模版复用 let y = 400; let unitWidth = Laya.stage.width / 16; for (...
来源: Laya_社区 发布时间: 20220530
...,当舞台发生变化时会触发!判断当前可视区域的width和height,当width<height时为竖屏,当width>height时为横屏 2016-11-08 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 shuiyue654 相关问题 发起...
来源: Laya_社区 发布时间: 20161108
... this.hitArea.hit.drawRect(list.x, list.y -100,list.width, list.height, "#000000"); //限制鼠标点击区域 } find_StringAllIndex(str :String):String[]{ let pos_arr =[]; for(let i=0;i...
来源: Laya_社区 发布时间: 20210122
...createElement("div"); qrcode= new Browser.window.QRCode(div,{ width : 100, height : 100 }); var url:String ="http://layabox.com/"; qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); qrcodeSp = new Sprite(); Laya.stage.addChild(qrcodeSp); } private function clickHandler():void { var ur...
来源: Laya2.0_文档 发布时间: 20210715