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

大约有 343 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0045 秒)

61. list 下 生成图片模糊 [ 82%]

....7 版的 一个list }, _render_bigList: function (cell, idx) { var data = this.bigList.array; if (idx >= data.length) { return; } cell.removeChildren(); var root = cell.getChildByName('root'); if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addChild(root); } 。。。...

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

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

...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

63. graphics.drawTexture()如何改变层级 [ 82%]

...次的低 ,(除了调换绘制顺序,顺序没法改变) 如下: this.bg.graphics.drawTexture(this.bgTexture, 100, 734, 64, 76); this.bg.graphics.drawTexture(this.bgTexture, 131, 703, 64, 76); 怎么让第二行绘制图像的层级比第一行低 2018-01-08 添加评论 免费帖 --> 分...

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

64. 点击list的时候触发的e.target永远是被点击的item? [ 81%]

....push({my_clip:i}); } my_list.array=arr; my_list.renderHandler=new Handler(this,onRender); } private function onRender(cell:Box,index:int):void { // TODO Auto Generated method stub var cell:Box=my_list.getCell(index) as Box; var my_btn:Button=cell.getChildByName("my_btn") as Button; var my_clip:Clip...

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

65. List下使用 localToGlobal 获取坐标错误 [ 81%]

List下使用 localToGlobal 获取坐标错误 console.log(this.ui.List.localToGlobal(new Laya.Point(0, 0)));我想获取List下cell的坐标, 但是不管怎么拖动, 打印出来的数值都是一样的,不知道是使用错误还是哪里设置错误 2017-03-29 添加评论 免费帖 --> 分...

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

66. list的render复用问题 [ 81%]

...拖第五个item也叫item0, 通过list.selectHandler = new Laya.Handler(this, this._OnSelect); function _OnSelect(){ //选中的render上加个选中框, var selection = this.visualizeList.selection;         selection.addChild(this.m_CenterDiv.imgSelect); } 第五个render也会有选...

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

67. List没有自动排列 [ 81%]

...请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: this.list.hScrollBarSkin = ""; 有这个 就会横向排列, 我看你这个  是想把list 当成网格用? 2018-02-28 0 15 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

68. 按钮旋转 点击区域 [ 81%]

... pivotToCenter, 并且 setMouseDownHandler: function (context, handler) { this.on(this.EVENT.MOUSE_DOWN, context, handler); }, setMoveHandler: function (context, handler) { this.on(this.EVENT.MOUSE_MOVE, context, handler); }, setMouseUpHandler: function (context, handler) { this.on(this.EVENT.MOUSE_...

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

69. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 81%]

...  init( box: GunBox, doll_item: DollItem, doll_area: Area ):void { // if(!this._body_ani) // { // this._body_ani = new Laya.Animation(); // this.addChild(this._body_ani); // } // this._body_ani.play(0, true, doll_item.animation_name);  this._box = box;  this._fly_site.w = this._box._area.w - 20; ...

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

70. 关于下拉列表 [ 81%]

...拉列表 真的,真是服LAYA,哎,搞了我一晚上,真心不行 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.te...

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