大约有 2,026 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0065 秒)
Laya_社区(1419) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(42) Laya2.0_api(7) laya_api(6)
... } let list = new Laya.List; list.width = this.itemList.width; list.height = this.itemList.height; list.x = this.itemList.x; list.y = this.itemList.y; list.spaceY = 12; list.vScrollBarSkin = ""...
来源: Laya_社区 发布时间: 20170310
...ar LoginView = (function (_super) { function LoginView() { LoginView.super(this); //调用父类构造函数 this.dlg; } function connect() { var hr = new Laya.HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERR...
来源: Laya_社区 发布时间: 20170215
...r LoadResource = function () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype...
来源: Laya_社区 发布时间: 20200924
... = 250; addBtn.y = 50; Laya.stage.addChild(addBtn); DesBtn.on(Event.CLICK, this, onDesBtn); addBtn.on(Event.CLICK, this, onAddBtn); } private function onDesBtn():void { destroy(); } private function onAddBtn():void { startFun(); } public function startFun():void { mAniPath = "Dragon/Dragon.sk"; mFac...
来源: Laya_社区 发布时间: 20170406
...(var m: number = 0; m < 20; m++) { data.push({ m_label: "No." + m }); } this.list.array = data; } } 代码中,m_label的命名要与List列表项下的Label组件命名相同。 1.2.5 运行查看效果 将脚本挂载到Scene2D场景上,然后将List组件拖入到脚本暴露出来的属性...
来源: Laya3.0_文档 发布时间: 20240910
...L); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //原始位图 this.createImg(100,50); //红色滤镜 this.creteRedFilter(); //灰色滤镜 this.createGrayFilter(); } /**创建位图**/ private createImg(w:number,h:number):Laya.Sprite{ var Img:Laya.Sprite = new Laya.Sprite(); //添加到...
来源: Laya_社区 发布时间: 20200522
...und = (function (_super) { function BackGround() { BackGround.__super.call(this); //创建背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景图 this.bg1.loadImage("war/background.png"); //把背景1放到容器内 this.addChild(this.bg1); //创建背景2 this.bg2 = new Laya.Sprite(); //...
来源: Laya_社区 发布时间: 20170222
...roup=Resource&name=GarbageCollection)) ```typescript function(e:Event) { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不...
来源: Laya2.0_文档 发布时间: 20210715
...le(): void { Laya.Physics.I.allowSleeping = false; this.strWorldRoot= this.owner.scene.strWorldRoot; Laya.Physics.I.worldRoot = this.strWorldRoot; } onUpdate(): void { var playerPos=new Laya.Point(this.cameraPlayerOffset.x,this.cameraPlayer...
来源: Laya_社区 发布时间: 20231123
...on(e){} __proto__.checkList=function(){ this.publicloader=new URLLoader(); this.publicloader.dataFormat=/*iflash.net.URLLoaderDataFormat.VARIABLES*/"variables"; this.publicloader.addEventListener(/*iflash.events.Event.COMPL...
来源: Laya_社区 发布时间: 20151217