大约有 353 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
...umber):void { console.log("当前选择的索引:" + index); //this.theItem = new DlgNote2(); //this.theItem.popup(); Laya.Scene.open("note2Dlg.scene"); } ——就是这里:我希望打开b的时候,a是在b的后面遮罩中存在的。这样当我关闭b的时候,a还...
来源: Laya_社区 发布时间: 20190521
...end',list,scrollBarHandler) function scrollBarHandler(){ if(this.scrollBar.value == this.scrollBar.max){ var that = this; setTimeout(function(){ that.addItem("../../res/ui/listskins/5.jpg"); ...
来源: Laya_社区 发布时间: 20170912
...el: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看...
来源: Laya3.0_文档 发布时间: 20241014
...{text:"six"}}); data.push({m_label:{text:"seven"}}); } this.m_list.array = data; this.m_list.vScrollBarSkin=''; } list 的宽高 和下面的box 和label宽高一致 183*****288 • 2018-02-10 13:32 但展示出来就是拉倒最下面 会空着一大块 很难看 qian • 2018-0...
来源: Laya_社区 发布时间: 20180210
...,{x:point.x,y:point.y,alpha:1,update:Laya.Handler.create(point,function(){ this.visible = true; })},800,Laya.Ease.backOut,null,i*400); timeline在一开始还在正常执行, 当有一半左右的ui元素进入到场景时, timeline循环卡住不动了, 等所有ui动画执行完毕, timeline又开...
来源: Laya_社区 发布时间: 20180118
2.0 的list问题 /** 初始化坑位 */ private initCellList(): void { this.cellList.itemRender = CellItem; this.cellList.vScrollBarSkin = ""; this.cellList.repeatX = BattleMgr.Ins.Model.crosCel; this.cellList.repeatY = BattleMgr.Ins.Model.maxCell / BattleMgr.Ins.Model.crosCel; this.cellList.array...
来源: Laya_社区 发布时间: 20181221
...的按钮变量进行设置点击事件 var gameOver = new GameOverUI(); this.SceneMajor.addChild(gameOver); gameOver.btRetry.on('click', this, function(){ window.location.reload(); });当然因为按钮都是小元素, 默认情况下会被打包成atlas文件 需要在代码执行前先下载完...
来源: Laya_社区 发布时间: 20180116
...来自: Laya.init(500,400,Laya.WebGL);createText();function createText(){this.txt = new Laya.Text();this.txt.overflow = Laya.Text.SCROLL;this.txt.text = "Layabox是HTML5引擎技术提供商与优秀的游戏发行商,面向AS/JS/TS开发者提供HTML5开发技术方案!\n" ;this.txt.size(200,10...
来源: Laya_社区 发布时间: 20180125
...话框var testUI=(function(_super){ function testUI(){ testUI.__super.call(this); } CLASS$(testUI,'ui.testUI',_super); var __proto__=testUI.prototype; __proto__.createChildren=function(){ laya.ui.Component.prototype.createChildren.call(this); this.createView(testUI.uiView); } testUI.uiView={"type":"...
来源: Laya_社区 发布时间: 20180325
...19-05-20 15:11 浏览: 2212 关注: 3 人 Supermang42 • 2018-08-10 14:17 this.sx.text = " xxx "; Supermang42 • 2018-08-10 14:17 this ← 是你的UI Lancer • 2018-08-10 17:04 @Supermang42:我添加Laya.stage.addChild(this)之后,text才被赋值,但是把先前addChild()的内容...
来源: Laya_社区 发布时间: 20180810