大约有 1,038 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
Laya_社区(609) Laya2.0_文档(86) Laya3.0_api(75) Laya2.0_api(62) laya_api(57) Laya2.0_示例(53) Laya_示例(49) Laya3.0_文档(47)
...txt.text = "适配模式("+Laya.stage.scaleMode+") "; txt.bold = true; txt.pos(10, 350); txt.fontSize = 60; txt.color = "#fff000"; Laya.stage.addChild(txt); } } } 附件 : --> LayaAir1_7_beta.rar 2017-02-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20170228
...Text.registerBitmapFont(mFontName,mBitmap); var text:Text=new Text(); text.pos(300,200); text.size(200,80); text.pivotY=text.height>>1; text.valign="middle"; text.align="left"; text.borderColor="#ffffff"; text.text="hello!LayaBox!"; text.font=mFontName; Laya.stage.addChild(text); } } }测试...
来源: Laya_社区 发布时间: 20161116
... var cb: ComboBox = this.createComboBox(this.skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } private createComboBox(skin: String): ComboBox { var comboBox: ComboBox = new ComboBox(this.skin, "item0,item1,item2,item3,item4,item5"); comboBox.labelSize ...
来源: Laya2.0_文档 发布时间: 20210715
...templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Browser.width / 2, Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Event.STOPPED, this, this.play) this.play(); } private onError(): void{ console.log("parse error"); } private play(): void { co...
来源: Laya2.0_文档 发布时间: 20210715
...ite = new Sprite(); spr.graphics.drawTexture(tex); this.addChild(spr); spr.pos(90, 0);*/ } private function getPixel(tex:Texture):int { var pixelCount:int = 0; var arr:Array = tex.getPixels(0, 0, tex.width, tex.height); for(var i:int = 0; i < arr.length; i++) { if(arr[i] > 0) { pixelCount++; }...
来源: Laya_社区 发布时间: 20180319
...图2 bg2.loadImage("res/background.png"); //设置背景图2的坐标 bg2.pos(0, -852); //把背景2添加到容器 box.addChild(bg2); //设置一个帧循环处理函数,用于背景位置的更新,实现背景滚动效果。 Laya.timer.frameLoop(1, this, onLoop); })() /** * 在onLoop函数内...
来源: Laya_社区 发布时间: 20160810
...ontainer.graphics.clear(); tipContainer.loadImage(guide.tip); tipContainer.pos(guide.tipx, guide.tipy); } } })(); 2017-10-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 麻...
来源: Laya_社区 发布时间: 20171031
...g); var button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE_BTN_PADDING, CLOSE_BTN_PADDING); dialog.addChild(button); dialog.dragArea = "0,0," + DIALOG_WIDTH + "," + DIALOG_HEIGHT; console.log("SHOW"); dialog.show(); Laya.timer.once(3000, thi...
来源: Laya_社区 发布时间: 20170303
...e onAwake onDestroy onDisable onEnable once parentRepaint pause pivot play pos reCache reload removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf render repaint replaceChild runCallLater scale setChildIndex setSelfBounds set_height set_scaleX set_scaleY set_transfo...
来源: Laya3.0_api 发布时间: 20231102
...tton.name = Laya.Dialog.CLOSE; button.width=260; button.height=500; button.pos(35, 35); dialog.addChild(button); dialog.dragArea = '0,0,300,600'; dialog.show(); } onEnable() { this.btnShow.on(Laya.Event.CLICK,this,this.onBtnShowClick); } onDisable() { } } 是不是以为到了这一步就结束了...
来源: Laya_社区 发布时间: 20190117