大约有 1,562 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0058 秒)
...nUI.list.renderHandler = new Laya.Handler(this, this.onRender); Laya.stage.addChild(this.mainUI); }; GameMain.prototype.onRender = function (cell, index) { if(index <0 || index >= dataSource.length) return; var data = dataSource[index]; var chBox = cell.getChildByName('chBox'); var img = cell....
来源: Laya_社区 发布时间: 20170207
...ign = StageAlign.TOP_LEFT; var loginView:LoginView = new LoginView(); this.addChild(loginView); } } } 提示:你需要确定4步 1、导入的fb(或 fd)项目,找到LoginView,手动调整分包的js文件路径(由于分包期间做过调整,所有分包后的js文件统一放在h5文...
来源: Laya_社区 发布时间: 20151225
...; var texts:Text=new Text(); texts.text="hello!welcom LayaBox"; Laya.stage.addChild(texts); } } } 2016-10-18 1 0 分享 微博 QZONE 微信 a13121527420 - 哇啦哇啦哇啦! 赞同来自: 你好我用的是1.71beta 版本,我找不到这个提取语言包的界面! 你这个上面也没...
来源: Laya_社区 发布时间: 20161018
...的索引顺序一致的吧,就是按照childIndex的顺序。就是和addChild的先后顺序一致 譬如a代表图集A当中的切图,b代表图集B当中的切图 子级顺序是 aaaaabbbbb的时候drawCall为2 子级顺序是 ababababab的时候drawCall则为10 rainysky • 2017-11-27 14:35...
来源: Laya_社区 发布时间: 20171127
...Map); var miniMap1 = new Laya.Image(); miniMap1.loadImage(img); Laya.stage.addChild(miniMap1); } } miniMap.src=url; function circle_image(img, oldImgWidth, oldImgHeight) { var width, height, canvas, contex, circle; if (img.width > img.height) { width = img.height; height = img.height; } els...
来源: Laya_社区 发布时间: 20181125
...3B,laya.utils.Handler.create(this,function(){ //添加到舞台 Laya.stage.addChild(roleAni); roleAni.play(); })); 代码就这几行.... 2018-03-22 0 0 分享 微博 QZONE 微信 wdmingzi2 赞同来自: 只是单纯的调用加载接口 然后就加载的时候出错......代理服务器的...
来源: Laya_社区 发布时间: 20180322
...,绘制到画布 this.img.skin = this.Res //添加到舞台 Laya.stage.addChild(this.img); } private cacheCanvas: Laya.HTMLCanvas private cacheTexture: Laya.Texture init(){ let rect = this.img.getSelfBounds() this.img.pivot(Math.round(rect.width / 2), Math.round(rect.height / 2)) let bound = this....
来源: Laya_社区 发布时间: 20171211
...); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } 发布成单机版apk在移动端安装运行,移动端报错提示: htt...
来源: Laya_社区 发布时间: 20170522
...house1 = Laya.Sprite3D.load("model/build/warehouse1/warehouse1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 90, 0), false, false); warehouse1.transform.translate(new Laya.Vector3(0,0,0),false); warehouseMeshSprite3D1= warehouse1.getChildAt(0).getChildByName("Mesh...
来源: Laya_社区 发布时间: 20171226
...g:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya.Image = new Laya.Image(); imgMask.skin = img.skin; imgMask.scaleX = 0; // 无效 // imgMask.scaleX = 1 // 有效 //imgMask.scaleX = 0.5 // 有效 img.mask = imgMask; imgMask.repaint(); } } new ...
来源: Laya_社区 发布时间: 20170327