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

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

31. 关于LAYA TS重写X和Y坐标的问题 [ 85%]

...标始终是00 而在LAYA AS3环境里却是可以重写的 因为AS3可以super.x super.y 打个比方 假设在LAYA TS 里这么写 class XXX extends Sprite { public set x(value:number) { this._x = value; } public get x():number { return this._x; } } 这样写在WEB环境下固然可行 但是却...

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

32. Laya 绑定显示内容到骨骼动画 [ 85%]

...extends Laya.Skeleton { private __bindList:BindSource[]; constructor(){ super(); this.__bindList=[]; }  /** * 绑定 * @param source */ bind(source:BindSource):void{ let index:number=this.__bindList.indexOf(source); if(index<0){ this.__bindList.push(source); } this.addChild(source); this.ti...

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

33. 新手,图片加载不进去,没有报错。很疑问 [ 85%]

...链接 提交 1 个回复 Laya_XS 赞同来自: var BackGround=(function(_super){ function BackGround(){ BackGround.__super.call(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("comp/bg.png"); this.addChild(this.bg1); } Laya.class(BackGround,"BackGround",_super); return BackGround; })(Laya.S...

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

34. 关于js继承类class的参数问题 [ 84%]

... 1 个回复 w1114367261 赞同来自:  * @example      * (function (_super){      *     function Item(){      *         Item.__super.call(this);//初始化父类      *         this.graphics.drawRect(0, 0, 100, 20, "#ff0000");      *         var label = new laya.ui.Lab...

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

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

...   这是场景代码/* * 用户扑克界面; */ var Panel1 = (function (_super) { function Panel1() { Panel1.super(this); //this.poke_a.x=0; } Laya.class(Panel1, "Panel1", _super); var _proto = Panel1.prototype; //======================================= //将指定的牌显示到桌面上 //======...

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

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

...的时候会报错,是不是这个类写得不对呀 var Test = (function(_super){ function Test(){         Test.super(this);         console.log("执行测试构造函数"); } //注册类 Laya.class(Test,"Test",_super); //获取执行域 var _proto = Test.prototype; //_proto. return Test; }...

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

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

... • 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(LabelAtla...

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

38. List滚动条问题 [ 83%]

...t item里的button图片显示不出来   item代码如下: (function (_super){ function MarketItem() { MarketItem.__super.call(this); this.size(312, 462); // {id:1,name:"10金豆-测试",price:0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res\\common\\BalanceSellDlg\\xiao...

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

39. 1.7.3之后的版本,重复类名出现bug [ 83%]

... __class(StartUpCommand,'com.game.modules.hall.controller.StartUpCommand',_super); __class(StartUpCommand,'com.game.modules.login.controller.StartUpCommand',_super,'StartUpCommand$1'); __class(StartUpCommand,'com.game.shell.controller.StartUpCommand',_super,'StartUpCommand$3');   我全文搜了下...

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

40. List选中项下滚会变 [ 83%]

...语言javascript,引擎1.7.8beta)   var ServerListView = (function(_super){ function ServerListView(){ ServerListView.super(this); this.selectedIndex = -1; var data = ; //设置服务器列表项信息 for(var i=0;i<100;i++){ data = {select:{label:"服务器"+(i+1),selected:false}, flag:{tex...

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