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

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

131. 请问怎么监听在IDE中创建的UI中资源的加载进度呢 [ 68%]

... 2017-02-25 12:24 你说的这6张图片是通过loader加载的,还是image图片通过skin方式自己加载的? anran • 2017-02-25 12:26 @Laya_XS:是image图片通过skin方式自己加载的 anran • 2017-02-25 12:28 @Laya_XS:这6张单独的图片在IDE里有一个unpack.json,是不是...

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

132. 怎么加载网络上的图片 [ 68%]

怎么加载网络上的图片 比如http://image.xxx.com/1.png,怎么加载到精灵显示吗 2017-02-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: sprite你可以用loadImageimage...

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

133. 能够知道使用的资源是不是Atlas吗 [ 68%]

...要使用的图片拖入skin了,可否在程式里面知道现在这个Image使用的是一般图片或是图集(Atlas)? 附件 : --> 2018-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自...

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

134. List翻页效果 [ 68%]

...ex: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.l...

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

135. List翻页效果怎么实现 [ 68%]

...ex: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.l...

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

136. list随机生成图片优化 [ 67%]

...; case 2: bb=4; break; case 3: bb=1; break; case 4: bb=3; break; } var img:Image = cell.getChildByName("img1") as Image; img.skin ="battle/xuanshangyu/Image_"+aa+"00"+bb+".png"; 一个list中有4张图片,图片随机从id1002,2004,3001,4003中随机选一张,但是这样的话一个list中有4...

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

137. 如何操作List内物件的属性 [ 67%]

...就设置物件visible的属性 假设我的list裡面的项目是由一个Image跟一个Label构成 那麽我的做法是这样var arr=[]; arr.push({Image:"url",Label:"text"}); list.array=arr; 我现在想在push当中就设置Image的visible属性为false 以简化我的码 请问有可行办法...

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

138. 无法触发浏览器文件上传框 [ 67%]

...入口 class GameMain { private btn: Laya.Button; private skin: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * ...

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

139. 为什么有红底 [ 67%]

...ode  <View width="750" height="225" editorInfo="compId=1">    <Image y="0" x="0" skin="home/image_touxiangkuang.png" editorInfo="compId=5"/> </View> 附件 : --> 2017-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

140. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 67%]

...ex: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.l...

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