大约有 30 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
Sprite optimizeScrollRect = true 似乎有问题 this.initMask = function () { this.mask = new Sprite(); this.mask.width = this.width; this.mask.height = this.height; this.mask.scrollRect = new Rectangle(); this.mask.scrollRect.setTo(0, 0, this.width, this.height); this.mask.optimizeScrollRect = tr...
来源: Laya_社区 发布时间: 20161118
...emo一模一样。。。 // 这段代码需要在setupDemo之前执行。 (function() { // 项渲染器 var Box = Laya.Box; var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); t...
来源: Laya_社区 发布时间: 20180731
... 设置panel.vscrollBar.value=panel.vscrollBar.max 完毕 示例:public function Main() { Laya.init(1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img...
来源: Laya_社区 发布时间: 20161103
...,obj2,obj3]; list.selectHandler = new Handler(this,onListSelected) private function onListSelected(cell:View,index:uint):void{ list.tweenTo(index,5000);//也就是这里没有效果 } wudi199553 • 2017-10-20 16:27 把你的 Demo发过来,光看这个看不出来的
来源: Laya_社区 发布时间: 20171020
怎么使用http请求 httpRequest: function (url, data) { var xhr = cc.loader.getXMLHttpRequest(); if (!xhr.onreadystatechange) { xhr.onreadystatechange = function () { if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status <= 207)) { //cc.log("response:\n" + xhr.respons...
来源: Laya_社区 发布时间: 20180807
...,还不准确,但是log出的box单元格是同一个 localToGlobal: function (ele, flag) { var point = new laya.maths.Point(ele.pivotX, ele.pivotY); // flag = flag ? true : false; return ele.localToGlobal(point, flag); } console.log(box); var targetXY = Utils.localToG...
来源: Laya_社区 发布时间: 20171102
...this, this.updateList); ActivityXXXXXUI.prototype.updateList = function(cell, index) { var info = cell.dataSource; var img_icon = cell.getChildByName("img_icon");//图标 var lab_name = cell.getChildByName("lab_name");//名称 } itemH...
来源: Laya_社区 发布时间: 20170808
...aya.ui.List; import laya.utils.Handler; public class List_Example { public function List_Example() { Laya.init(640, 800, "false");//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vsc...
来源: Laya3.0_api 发布时间: 20231115
...加单元格数据源到对应的数据索引处。 List callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Component changeItem(index:int, source:Object):void 修改单元格数据源。 L...
来源: laya_api 发布时间: 20170929
...加单元格数据源到对应的数据索引处。 List callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Node changeItem(index:int, source:Object):void 修改单元格数据源。 List ...
来源: Laya2.0_api 发布时间: 20190513