大约有 717 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0055 秒)
Laya_社区(315) Laya3.0_api(93) Laya2.0_api(74) laya_api(62) Laya_示例(55) Laya2.0_示例(55) Laya2.0_文档(42) Laya3.0_文档(21)
...新viewport值无效果 在一个定时器里面定时更新viewport的x,y,width,height值发现并没有改变到视口的效果,请教一下 2018-07-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron...
来源: Laya_社区 发布时间: 20180707
...this.createView(testUI.uiView); } testUI.uiView={"type":"Dialog","props":{"width":266,"height":720},"child":[{"type":"Image","props":{"y":0,"x":0,"skin":"poker/bottom_slider.png"}}]}; return testUI; })(Dialog);我定义了一个对象来使用它 var SelectColorDialog = (function () { function selec...
来源: Laya_社区 发布时间: 20180325
...lete() { progressBar = new ProgressBar("./comp/progress.png"); progressBar.width = 400; progressBar.x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = Laya.stage.height / 2; progressBar.value = 0; progressBar.sizeGrid = "5,5,5,5"; // progressBar.changeHandler = new Handler(this, null); ...
来源: Laya_社区 发布时间: 20171230
... 什么是百分比布局?百分比布局就是子节点的x、y、width、height都是相对于父节点的百分比的,这样可以使UI内部所有控件的相对位置保持不变,适配起来更方便。 官方对于这种机制是怎么看的? 2018-03-12 添加评论 免费...
来源: Laya_社区 发布时间: 20180312
...elloUI extends Scene { public static uiView:any ={"type":"Scene","props":{"width":640,"height":1136},"compId":2,"child":[{"type":"Label","props":{"y":64,"x":214.5,"width":211,"text":"label","styleSkin":"comp/label.png","height":67},"compId":3}],"loadList":["comp/label.png"],"loadList3D":[]}; constru...
来源: Laya_社区 发布时间: 20190625
...; var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / 2; picture.scale(cardScaleValue, cardScaleValue, true); picture.on(Event.MOUSE_DOWN, this, onStartPicture(Picture); } function ...
来源: Laya_社区 发布时间: 20181022
....progressBar = new ProgressBar("res/ui/progressBar.png"); this.progressBar.width = 400; this.progressBar.x = (Laya.stage.width - this.progressBar.width) / 2; this.progressBar.y = Laya.stage.height / 2; this.progressBar.sizeGrid = "5,5,5,5"; this.progressBar.changeHandler = new Handler(this, this.onC...
来源: Laya2.0_文档 发布时间: 20210715
...graphics.drawCircle(0, 0, 350, null, "#ff0000", 4); sprite.pivotX = sprite.width * 0.5; sprite.pivotY = sprite.height * 0.5; sprite.x = this.width * 0.5; sprite.y = this.height * 0.5; this.addChild(sprite); Laya.Tween.to(sprite, {scaleX:1.5, scaleY:1.5, alpha:0}, 5000); 2018-07-08 添加评论 免...
来源: Laya_社区 发布时间: 20180708
...DivElement(); this.labaContent.style.fontSize = 22; this.labaContent.style.width=100; this.labaContent.style.wordWrap=false; this.labaContent.x = 60; this.labaContent.y = 5; 为什么还是不行呢?请问 我的文本是通过innerHTML <span>输出的 2017-09-15 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20170915
...= treeData; // tree.size(300, 300) // tree.x = (Laya.stage.width - tree.width) / 2; // tree.y = (Laya.stage.height - tree.height) / 2; // Laya.stage.addChild(tree); } 附件 : --> 2018-07-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20180726