大约有 494 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)
...his); this.onPlay(); } Laya.class(Loading_fly, "Loading_fly", _super) var _proto = Loading_fly.prototype; _proto.onPlay = function () { UIConfig.popupBgAlpha = 0.85; UIConfig.closeDialogOnSide = false; this.diango = new Laya.Dialog(); this.diango.width = Laya.stage.width; this.diango.height = Laya.s...
来源: Laya_社区 发布时间: 20171107
...自己的_showGridList顺序,这样在调整zorder时是调整不到的__proto.render=function(context,x,y){ var childs=this._childs; this._childs=this._showGridList; _super.prototype.render.call(this,context,x,y); this._childs=childs; }2.core中Sprite的zorder的set方法中 有一行代码有疑...
来源: Laya_社区 发布时间: 20180412
...s,this.init); } return BtnFeed; })(); //实例化上面的类 _proto.getFeedBtn = function(){ this.feedBtn = [ this.myHome,//我的家园 this.famlilyMune.getChildByName("shop"),//我的家园-商店 this.famlilyMune.getCh...
来源: Laya_社区 发布时间: 20170301
...taView at DataView.getUint8 (<anonymous>) at ByteArray.__proto.readUTFBytes (MingGame.max.js:4177) at ByteArray.__proto.readUTF (MingGame.max.js:4149) 2018-03-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...
来源: Laya_社区 发布时间: 20180312
...r() { Laya.init(600,400, WebGL); } static wallet:com.battlecry.idle_m.data_proto.WalletModel; } new GameMain(); 然后编译就卡死 Bug调试: 经过node inspect 发现是layaair-cmd 目录下的tools/tsSort.ts卡死 53行:var staticHelp = /\bstatic\b\s+\w+:((?:\w+\.?)+)...
来源: Laya_社区 发布时间: 20181115
组件Clip(play方法的bug) __proto.play=function(from,to){ (from===void 0)&& (from=0); (to===void 0)&& (to=-1); this._isPlaying=true; this.index=from; this._toIndex=to; this._index++;//源码这里没必要吧 2018-11-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20181130
...ctor2):void[static] 归一化二维向量。 Vector2 rewriteNumProperty(proto:*, name:String, index:int):void[static] Vector2 scalarLength(a:Vector2):Number[static] 计算标量长度。 Vector2 scale(a:Vector2, b:Number, out:Vector2):void[static] 缩放二维向量。 Vector2 setValue(x...
来源: Laya2.0_api 发布时间: 20190513
...rite Laya.class(RunGame,"RunGame", laya.display.Sprite); //定义RunGame的prototype var _proto = RunGame.prototype; //初始化 _proto.init = function(){ console.log('RunGame Init'); } })(); 此处我们要说一下 Laya.class(RunGame,"RunGame", laya.display.Sprite); 这是JS特有的继承写法...
来源: Laya_社区 发布时间: 20160722
微信小游戏不支持protobuf吗 微信小游戏不支持protoBuf吗? protobuf在加载协议文件时,不认识协议文件! error log : request:fail invalid url "msg.proto" 2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20180322
使用protobuf的时候,require报错 用工具生成自己的proto.js 之后,把他和库文件protobuf.js 放在一个目录下了。 proto.js里面,第一行代码就是:var $protobuf = require("protobuf"); 运行的时候报错:require is not defined 请教各位大神,这个怎...
来源: Laya_社区 发布时间: 20200325