大约有 95 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0046 秒)
... { 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); } ...
来源: Laya_社区 发布时间: 20170921
...res/ui/progressBar.png"); this.progressBar.pos(100, 500); this.progressBar.width = 400; this.progressBar.sizeGrid = "5,5,5,5"; this.progressBar.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); }); } // 模拟...
来源: Laya3.0_文档 发布时间: 20251010
....graphics.drawRect(0, 0, 500, 350, "#ffffff") drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 参数fillColor:* — 填充颜色,或者填充绘图的渐变对象 我找不到关于这个渐变对象的文档,例子或者教...
来源: Laya_社区 发布时间: 20170420
...nstance = this; } onBtnShowClick(){ var dialog = new Laya.Dialog(); dialog.width=300; dialog.height=600; //var bg = new Laya.Image('comp/img_bg.png'); //dialog.addChild(bg); var button = new Laya.Button('comp/button.png'); button.label='Hello World!'; button.name = Laya.Dialog.CLOSE; button.width=26...
来源: Laya_社区 发布时间: 20190117
...0,200,100,600,1100,600,1100,200"; } private function createBox(posx, posy, width, height, ratio) { var box = new Sprite(); box.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.addChild(box); box.pos(posx, posy).size(width * ratio, height * ratio); var rigidbody: RigidBody = box.addComponent(Ri...
来源: Laya2.0_示例 发布时间: 20260303
...目开发更高效。const // 一只凤凰的分辨率是550 * 400 phoenixWidth = 500, phoenixHeight = 400, bgColorChannels = { r: 99, g: 0, b: 0xFF }, gradientInterval = 2000; class BlendMode_Lighter { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya...
来源: Laya2.0_示例 发布时间: 20260303
...tReceive = true; } // 生成一个矩形 private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = new Uint16Array(2 * 3); let index = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[inde...
来源: Laya3.0_文档 发布时间: 20251010
.../ public class WWJ_Main { private const stageWidth:int = 540; private const stageHeight:int = 960; private var Matter:Object = Browser.window.Matter; private var LayaRender:Object = Browser.window.LayaRender; ...
来源: Laya_社区 发布时间: 20170822
...put"); //设置file的样式 file.style="filter:alpha(opacity=0);opacity:0;width: 150px;height:60px;"; file.type ="file";//设置类型是file类型。 file.accept="image/png";//设置文件的格式为png; file.style.position ="absolute"; file.style.zIndex = 999; Browser.document.body.appendChild...
来源: Laya_社区 发布时间: 20180529
...,此方法只执行一次 onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin = "atlas/comp/fontClip_num.png"; thi...
来源: Laya3.0_文档 发布时间: 20251010