大约有 987 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0064 秒)
Laya_社区(609) Laya2.0_文档(80) Laya3.0_api(67) Laya2.0_api(60) laya_api(56) Laya2.0_示例(41) Laya_示例(37) Laya3.0_文档(37)
...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
...ontainer.graphics.clear(); tipContainer.loadImage(guide.tip); tipContainer.pos(guide.tipx, guide.tipy); } } })(); 2017-10-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 麻...
来源: Laya_社区 发布时间: 20171031
...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
... var img2 =new Laya.Image("bg1.png"); this.pos(0,0); img1.size(100,30); img2.size(100,50); img1.name ="img1"; img2.name ="img2"; img2.visible =false; //默认img2隐藏 img...
来源: Laya_社区 发布时间: 20190522
...Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(reference); reference.pos(0, 0); reference.size(Laya.stage.width, Laya.stage.height); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); let tipElmt = Laya.Browser.createElement("img"); tipElmt.src = getResURI("ui/gui...
来源: Laya_社区 发布时间: 20180802
...temByCreateFun("bullet", this.bullet.create, this.bullet); flyer.pos(Laya.stage.mouseX, Laya.stage.mouseY); this._gameBox.addChild(flyer); this._chains.points="118,99,158,70,218,99,258,70,318,99,358,70,418,99,458,70,518,99,558,70"; } /**开始游戏,通过激活本脚本方式...
来源: Laya_社区 发布时间: 20181128
...用htmlCanvas创建Texture * var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 * sp.graphics.drawTexture(texture);//把截图绘制到精灵上 * Laya.stage.addChild(sp);//把精灵显示到舞台 * ...
来源: Laya_社区 发布时间: 20180719
...(); text.font="hu"; text.fontSize=50; text.text="لحسن نهر123"; text.pos(100, 100); text.width = 500; text.height = 500; Laya.stage.addChild(text); } 参考该贴加载字体方式: https://ask.layabox.com/question/332 附件 : --> LayaFontTest.zip 2018-07-05 添加评论 已悬赏10元 -...
来源: Laya_社区 发布时间: 20180705
...raphicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); console.log(ani.index); Laya.stage.addChild(ani); console.log(ani.index); } json代码如下 {"frames": [ { "filename": "walk_01.png", "frame": {"x":2,"y":2,"w":3...
来源: Laya_社区 发布时间: 20160712