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

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

41. EventDispatcher接收不到参数 [ 80%]

...super){ function Dispatcher(){ Dispatcher.super(this); }; //注册类 Laya.class(Dispatcher,"Dispatcher",_super); //实例EventDispatcher类 Dispatcher.eventDispatcher = new Laya.EventDispatcher(); //发送事件 Dispatcher.Emit = function(InName,agv){ //派发事件 console.log("agv-->"+agv); Di...

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

42. 想用js写一个什么也不继承的类,但每次实例化这个类的时候会报错,是不是这个类写得不对呀 [ 80%]

...);         console.log("执行测试构造函数"); } //注册类 Laya.class(Test,"Test",_super); //获取执行域 var _proto = Test.prototype; //_proto. return Test; })(); 2018-06-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

43. 感觉实例之间是关联的,求指教。(已解决) [ 80%]

...super) { function Panel1() { Panel1.super(this); //this.poke_a.x=0; } Laya.class(Panel1, "Panel1", _super); var _proto = Panel1.prototype; //======================================= //将指定的牌显示到桌面上 //======================================= _proto.start = function () { var tempRetu...

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

44. 看一下这是什么问题,运行报错 [ 79%]

...l1 = (function (_super) { function MPanel1() { MPanel1.super(this); } Laya.class(MPanel1, "MPanel1", _super) var _proto = MPanel1.prototype; return MPanel1; }(ui.Panel1UI));代码如上,报错如下   附件 : --> 2018-02-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

45. 报错,这不是个构造函数 "StartPage is not a constructor" [ 79%]

...nction(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",La...

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

46. 模仿教程里的打地鼠写的代码,运行报错 [ 79%]

...function (_super) { function background() { background.super(this); } Laya.class(background,"background",_super); return background; })(ui.backgroundUI);backgound.ui也在场景编辑器里编辑并导出了。   然后运行的时候就会出错如下图   求解答 附件 : --> 2018-01-29 添加...

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

47. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 79%]

...,{fillStyle: "#ff0000"},{"strokeStyle":"#ffffff","lineWidth":"1"}); } Laya.class(login,"login",_super); var _proto = login.prototype; return login; })(Laya.Sprite); 2017-08-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

48. 自定义UI导致编辑器无显示 [ 79%]

...;& (clipY=1); this._clipX=clipX; this._clipY=clipY; this.skin=url; } __class(LabelAtlas,'laya.customUI.LabelAtlas',_super); var __proto=LabelAtlas.prototype; return LabelAtlas; })(Clip) xml如下: <?xml version="1.0" encoding="utf-8"?> <uiComp> <!-- drag:0-...

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

49. 【简单跑酷--JS版】---Lv.6 终篇 [ 79%]

...type_energy"; //速度类型 Hp.HP_TYPE_SPEED = "hp_type_speed"; //Hp Laya.class(Hp,"Hp", laya.display.Sprite); var _proto = Hp.prototype; _proto.init = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TY...

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

50. List选中项下滚会变 [ 79%]

...eHandler = new Laya.Handler(this,this.onMouse);//鼠标事件响应 } Laya.class(ServerListView,"ServerListView",_super); var _proto_ = ServerListView.prototype; //选择列表项时的相应时间,参数index是选中项的下标 // _proto_.onSelect = function(index){ // console.log("index",index...

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