• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 82 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)

21. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 80%]

...Image;         //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Laya.Image();             //this.text = new Laya.Label(); this.addChild(this.img);             //this.addChild(this.text); } public setImg(src: string): vo...

来源: Laya_社区 发布时间: 20180507

22. 数据、图片路径已加载到数组里面,要如何将图片路径赋值给skin?然后显示到list[ 80%]

...哪里 2018-03-21 0 0 分享 微博 QZONE 微信 andyskaura 赞同来自: this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender,null,false);  你试一下在回调otherItem_listRender(){ .skin="" } 里面直接给skin赋值,我平常都是这样用的。 2018-03-21 0 ...

来源: Laya_社区 发布时间: 20180321

23. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 79%]

...umber):void { console.log("当前选择的索引:" + index); //this.theItem = new DlgNote2(); //this.theItem.popup(); Laya.Scene.open("note2Dlg.scene"); } ——就是这里:我希望打开b的时候,a是在b的后面遮罩中存在的。这样当我关闭b的时候,a还...

来源: Laya_社区 发布时间: 20190521

24. 获取的ui页面里下on事件无法触发 [ 78%]

... 类代码如下: var GameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出:Butt...

来源: Laya_社区 发布时间: 20180213

25. [LayaAir3]3D场景里面鼠标感应区域 3.2.1跟3.3不同 [ 78%]

... Laya.loader.load("RenderTexture.rendertexture", null, Laya.Handler.create(this, null, null, false)).then(() => { this.spRole.texture = Laya.loader.getRes("RenderTexture.rendertexture"); //设置纹理的宽高为舞台大小,这样才不会拉伸变形 this.spRole.texture.sourceWidth = Laya.st...

来源: Laya_社区 发布时间: 20250109

26. 飞机大战地图滚动报错,麻烦看下? [ 78%]

...  bg2.pos(650, 0);     box.addChild(bg2);     Laya.timer.frameLoop(1, this, bg_loop()); } function bg_loop() {     box.x -= 1;     if (bg1.x + box.x <= 0) {         bg1.y = 650     }     if (bg2.x + box.x <= 0) {         bg2.x = 650     } } bg_rolling(); 以上是我把...

来源: Laya_社区 发布时间: 20160721

27. 小程序开放域相关 [ 77%]

... Laya.stage.event(Event.MOUSE_DOWN); //                    this.rankView.list["_content"].event(Event.MOUSE_DOWN,null);                 }             } //                         function showRank(str:String = ""):void{               ...

来源: Laya_社区 发布时间: 20180525

28. 仅在Android微信小游戏下图片错乱 [ 77%]

仅在Android微信小游戏下图片错乱 static preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets in...

来源: Laya_社区 发布时间: 20180609

29. List列表使用出现的问题 [ 76%]

...rray就找不到呢, 同理按照文档写 现在我的js也代码截图 this.m_list.scrollBar.hide = true;//隐藏列表的滚动条。 提示我scrollBar找不到。   附件 : --> 2018-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

来源: Laya_社区 发布时间: 20180323

30. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 76%]

...vents.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (var i = 0; i < 100; i++) { arr.push({label: "item " + i, clip: i % 9,btn:"btn"+i}); } //给list赋值更改list的显示 this.list.array = arr; //给lis...

来源: Laya_社区 发布时间: 20170513