大约有 712 项符合查询结果, 库内数据总量为 30,938 项。 (搜索耗时: 0.0049 秒)
Laya_社区(311) Laya3.0_api(93) Laya2.0_api(74) laya_api(62) Laya_示例(55) Laya2.0_示例(55) Laya2.0_文档(42) Laya3.0_文档(20)
...x与y轴位置,也可以在属性输入框中设置固定值。 ### 3.2 width、height宽高属性 在不改变组件大小的情况下,组件的宽高虽会自动计算,但在属性面板中并不会显示出来。当通过约束框或固定值设置对组件进行了缩放重置后,宽高...
来源: Laya2.0_文档 发布时间: 20210715
...d(ape1); //面板 var panel = new laya.ui.Panel(); panel.width = 500; panel.height = 500; panel.x = 200; var label = new laya.ui.Label(); label.text = "fsadfsdfsdfsdfsdf"; label.color = "#ff0000"; label.fontSize = 40; label.y = 50; va...
来源: Laya_社区 发布时间: 20170401
...x与y轴位置,也可以在属性输入框中设置固定值。 ### 3.2 width、height宽高属性 在不改变组件大小的情况下,组件的宽高虽会自动计算,但在属性面板中并不会显示出来。当通过约束框或固定值设置对组件进行了缩放重置后,宽高...
来源: Laya2.0_文档 发布时间: 20210714
...e() { progressBar = new ProgressBar("res/ui/progressBar.png"); progressBar.width = 400; progressBar.x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = Laya.stage.height / 2; progressBar.sizeGrid = "5,5,5,5"; progressBar.changeHandler = new Handler(this, onChange); Laya.stage.addChild(pr...
来源: Laya2.0_文档 发布时间: 20210715
...ssvalue.anchorY = 0.5; this.progressvalue.pos(15, 15); //记录宽度 this.width_x = this.progress.width + 3; this.vmask = new Laya.Sprite(); this.vmask.pos(15,15); this.vmask.graphics.drawPie(0, 0, 20, -90, 270, "#000000"); this.progress.addChild(this.progressvalue); this.progressvalue.mask = th...
来源: Laya_社区 发布时间: 20180725
...orld(input:Laya.Vector2):Laya.Vector2 { let ratioX = (input.x / Laya.stage.width); let ratioY = (input.y / Laya.stage.height); let clientWidth = Laya.stage.clientScaleX * Laya.stage.width let clientHeight = Laya.stage.clientScaleY * Laya.stage.height // let singleX = (Laya.Browser.width - clientW...
来源: Laya_社区 发布时间: 20180201
...么,获取界面组件的宽高吗,你可以试下用getBounds().width去获取试试! 2017-07-20 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 peterz3g 相关问题 两个对象new了一个相同的对象,调用第一个的...
来源: Laya_社区 发布时间: 20170720
...新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