大约有 712 项符合查询结果, 库内数据总量为 30,938 项。 (搜索耗时: 0.0050 秒)
Laya_社区(311) Laya3.0_api(93) Laya2.0_api(74) laya_api(62) Laya_示例(55) Laya2.0_示例(55) Laya2.0_文档(42) Laya3.0_文档(20)
...ler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.width/2-logo.width/2,Laya.stage.height/2-logo.height/2); })); 2018-10-10 0 1 分享 微博 QZONE 微信 hj 赞同来自: 你用这个方...
来源: Laya_社区 发布时间: 20181010
...I_Button extends Laya.Script { private COLUMNS: number = 2; private BUTTON_WIDTH: number = 147; private BUTTON_HEIGHT: number = 165 / 3; private HORIZONTAL_SPACING: number = 200; private VERTICAL_SPACING: number = 100; private xOffset: number; private yOffset: number; private skins: any[]; //组件...
来源: Laya3.0_文档 发布时间: 20240910
...Laya.stage.addChild(this.__bind); this.__bind.x=Laya.stage.width*0.5; this.__bind.y=Laya.stage.height*0.5; this.__bind.load(GamePath.single.getSpinePath("tank_blue.sk"),Laya.Handler.create(this,this.testLoadComplete)); } private __bind:...
来源: Laya_社区 发布时间: 20190805
...ee.xml = new Laya.XML(treeData); tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; tree.bgColor = "#d25454"; this.owner.addChild(tree); } } class Item extends Laya.Box { constructor() { super(); this.right = 0; this.left = 0; var selec...
来源: Laya3.0_文档 发布时间: 20240910
...置龙骨动画的点击区域 首先通过getBounds获取龙骨动画的width和height(可以通过延迟timer来获取) 然后这是龙骨的hitArea(-width,-height,width,height) 参考示例: mArmature = mFactory.buildArmature(1); mArmature.play(0,true); Laya.stage.addChild(mArmatu...
来源: Laya_社区 发布时间: 20161122
...tatic tempTexture: Laya.Texture; /**截图 */ public static drawScreenshot(width, height, x, y) { if (!SwitchHelper.screenDraw) { return null; } if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(system.width, system.height); } if (!this.tempTexture) { this.tempTexture = new Laya.T...
来源: Laya_社区 发布时间: 20191016
...X, numY) { var box = this._content; var cell = this._getOneCell(); var cellWidth = cell.width + this._spaceX; var cellHeight = cell.height + this._spaceY; if (this.cacheContent) { var cacheBox = new Box(); cacheBox.cacheAsBitmap = true; cacheBox.pos((this._isVertical ? 0 : startY) * cellWidth, (this...
来源: Laya_社区 发布时间: 20180418
...ya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } ...
来源: Laya2.0_示例 发布时间: 20250317
...anel的大小 3、调整两个Image的位置,一个在x=0,y=0,另一个x=width,y=0 4、代码中,见附件 Banner.zip 2018-08-10 1 3 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 重金悬赏第三方库用法,小伙伴踊跃参加呀。 2018-07-13 0 2 分享 微博 QZONE 微信 zsq 赞同...
来源: Laya_社区 发布时间: 20180713
...op=false; // mc.pos(570,230) mc.width=1000; mc.height=700; mc.on("click", this, onAniClick); trace("mcwidth:"+mc.width+"mcheight:"+mc.height); ...
来源: Laya_社区 发布时间: 20170804