大约有 283 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0038 秒)
...标始终是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
...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
...链接 提交 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
... 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
... 这是场景代码/* * 用户扑克界面; */ 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
...的时候会报错,是不是这个类写得不对呀 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
... • 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
...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
... __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
...语言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