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

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

131. 控件为image,在ide里面设置了mouseThrough 为 true,可我调试引擎时发现mouseThrough是false [ 79%]

控件为image,在ide里面设置了mouseThrough 为 true,可我调试引擎时发现mouseThrough是false ide 里面控件为image,在ide里面设置了mouseThrough 为 true,可我调试引擎时发现mouseThrough是false,是什么原因,麻烦告知一下。看引擎代码,目前没有...

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

132. list里面可以加入多个view吗? [ 79%]

....dataSource.src); cell.setLabel(cell.dataSource.txt); } } } import laya.ui.Image; import laya.ui.Label; import laya.ui.View; class Item extends View { public static var WID:int=150; public static var HEI:int=85; private var img:Image; private var label:Label; public function Item() { this.size(WID,H...

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

133. ui编辑器Box设置锚点后,红色边框位置偏移 [ 78%]

...设置锚点后,红色边框位置偏移 在ui编辑器中,box里有个image控件,image的锚点设置为(0.5,0.5),box的size就错了 红色部分是box的 size, 正常的是这样的   附件 : --> 2016-11-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

134. 代码创建精灵监听不到事件? [ 78%]

...注: 4 人 15818760256 • 2017-11-30 17:27 我把sprite改成了new Laya.Image(str) , 把这两句去掉: var texture = Laya.loader.getRes(boxstr); box.graphics.drawTexture(texture); 不能直接这么加载资源,要把资源放在new的Image里,new Laya.Image(str) 这样写就有点击事...

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

135. 【LIST无法拖动】参照官方实例做的 [ 78%]

...ist.destroy();      }        } import Box = Laya.Box; import Image = Laya.Image; import Text = Laya.Text; class Item extends Box {     public static WID: number = 400;     public static HEI: number =40;     private text_guanqia: Text;     private te...

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

136. ScrollRect设置会引起其他的UI资源无法正在显示 [ 78%]

...e; import laya.display.Sprite; import laya.maths.Rectangle; import laya.ui.Image; import laya.utils.Handler; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:A...

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

137. 如何取消button的皮肤? [ 78%]

...整个文件夹的图片,有什么好的方法么 如何在不destroy Laya.Image对象的前提下,clean掉之前load的image图片/皮肤 弹出提示的对话框用什么来做?(其中有确定和取消选项) button的点击和悬浮特效怎么取消 Panel的滚动条皮肤问题 问题...

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

138. 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) [ 78%]

...loading条资源 var pro1:Object={url:"loads/progressBar.png",type:Loader.IMAGE}; var pro2:Object={url:"loads/progressBar$bar.png",type:Loader.IMAGE}; var proArr:Array=; proArr.push(pro1,pro2); Laya.loader.load(proArr,Handler.create(this,onProLoaded)); } private function onProLoaded():void { // 将...

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

139. 图片像素精准点击问题! [ 78%]

...-08-03 0 1 分享 微博 QZONE 微信 vboyer 赞同来自: hitTest(t: Laya.Image) { let s = t.source.getPixels(t.mouseX, t.mouseY, 1, 1).join(''); if (s == '0000') return false; return true; } if (hitTest(target)) { // do hitTest action; }   通过检测像素点颜色值来判断点击区域,这...

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

140. List组件拖动浏览时item会出现重叠的现象 [ 78%]

...("当前选择的索引:" + index); } } import Box = laya.ui.Box; import Image = laya.ui.Image; import Label = Laya.Label; export class ListDataSourceItem extends Box { public static WID: number = 200; public static HEI: number = 20; // private _img: Image = null; private _lb:Label = null; constru...

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