大约有 712 项符合查询结果, 库内数据总量为 30,938 项。 (搜索耗时: 0.0046 秒)
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、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
...; this.txtName.pos(this._outPos.x / Laya.stage.clientScaleX - this.txtName.width/2, this._outPos.y / Laya.stage.clientScaleY); 2017-10-10 0 0 分享 微博 QZONE 微信 ltmking 赞同来自: //设置其他玩家角色名称跟随角色模型 这后边的代码放到针刷新事件里 2017-10-10 0...
来源: Laya_社区 发布时间: 20171010
...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
....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
...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
...,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "宋体"; //字体 this.txtin.fontSize = 50...
来源: Laya3.0_文档 发布时间: 20240910
...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 Skeleton 类播放完成一遍后有没事件或者回调 Layabox 可不可以刷新骨骼数据 聊天室存储数据 三国塔防游戏!终于开发完了,数据平...
来源: Laya_社区 发布时间: 20170321