大约有 168 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0055 秒)
...,运行报错 在LayaUISample.js里面是这样写的 var LayaSample = (function(){ (function(){ //初始化引擎 Laya.init(800,600); //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATL...
来源: Laya_社区 发布时间: 20180129
看一下这是什么问题,运行报错 var MPanel1 = (function (_super) { function MPanel1() { MPanel1.super(this); } Laya.class(MPanel1, "MPanel1", _super) var _proto = MPanel1.prototype; return MPanel1; }(ui.Panel1UI));代码如上,报错如下 附件 : --> 2018-02-06 添加评论 免费...
来源: Laya_社区 发布时间: 20180206
...q502416708 • 2017-02-06 16:57 我现在js这样写的: var LabelAtlas=(function(_super){ function LabelAtlas(url,clipX,clipY){ LabelAtlas.__super.call(this); (clipX===void 0)&& (clipX=1); (clipY===void 0)&& (clipY=1); this._clipX=clipX; this._clipY=clipY; this.skin=url; } __class...
来源: Laya_社区 发布时间: 20170206
...调用 我需要写一个工具类进行一些逻辑的处理 var Load_ = (function (_super) { function Load_() { Load_.super(this); } //注册类 Laya.class(Load_, "Load_", _super); var _proto = Load_.prototype; _proto.run_Fast = function () { console.log("逻辑处理"); } return Load_; })(Laya.Sp...
来源: Laya_社区 发布时间: 20180705
...制一个自适应得圆角矩形框,失败了,求解惑 var login = (function(_super){ function login(){ login.super(this); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",s...
来源: Laya_社区 发布时间: 20170806
...0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: Game.jsvar Game = (function(){ (function Game(){ Laya.init(600,800); this.bg = new window.Background(); Laya.stage.addChild(this.bg); })(); })();Background.js var Background = (function(_super){ function Background(){ Background.super(this); th...
来源: Laya_社区 发布时间: 20170420
...阵的方法 //返回变化矩阵 __proto.getResultMatrixByFrame=function(index){ var matrix=this._resultMatrixCache[index]; if(matrix){ return matrix; } return this.resultMatrix; } 2. Bone ...
来源: Laya_社区 发布时间: 20190805
...加Floor碰撞范围检测功能 Ok~~ 打开Floor.js开始 修改代码 (function(){ /** * 地板类 */ function Floor(){ //背景贴图纹理 this.bgTexture = null; //最大右边距离 this.maxRight = 0; //判断是否超过右边最大距离了 this.isOutComplete = false; //背景 this.bg = nul...
来源: Laya_社区 发布时间: 20160801
...JS语法相关的书籍 完整的结构如下所示: var LoginView = (function(_super){ function LoginView(){ LoginView.super(this); } Laya.class(LoginView,"LoginView",_super); return LoginView; })(ui.LoginUI); 2018-01-30 0 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180130
...,代码大概就是下面这样 // Test01是ui的逻辑类 var Test01 = (function (_super) { function Test01() { Test01.__super.call(this);// 调试用,看看过了多少帧,才就绪 this.numPreloadCalls = 0; // 执行预加载 this.prel...
来源: Laya_社区 发布时间: 20180622