大约有 237 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0040 秒)
...on LoginView(){ LoginView.super(this); } Laya.class(LoginView,"LoginView",_super); return LoginView; })(ui.LoginUI); 2018-01-30 0 0 分享 微博 QZONE 微信 sky_summer 赞同来自: 我是根据视频上学的(如下截图),我对照了一下,他这...
来源: Laya_社区 发布时间: 20180130
...() { function Hero(type, hp) { Hero.__super.call(this); this.fly(); } Laya.class(Hero,"Hero", Air); var _proto = Hero.prototype; _proto.fly = function() { this.playAction("fly") } })(); air类: (function() { function Air(type, hp) { this.hp = hp; this.type = type; this.body = null; Air.__super.cal...
来源: Laya_社区 发布时间: 20180911
...声明场景中的Button等控件? export module ui { export class GameSceneuiUI extends Laya.Scene { public static uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button...
来源: Laya_社区 发布时间: 20200228
...ide编辑模式中使用 运行demo 按F12 生成 代码如下/**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ import SceneBase from '../SceneBase' import View=Laya.View; import Dialog=Laya.Dialog; var REG: Function = Laya.ClassUtils.regClass; expor...
来源: Laya_社区 发布时间: 20190418
ts项目 模块问题 b文件写了个class ,怎么在a文件new class? export 显示未定义,require也用不了 //b文件 export default class player extends Laya.Sprite { constructor() { super(); this.pivot(this.width / 2, this.height / 2); this.graphics.drawRect(0, 0, this._size, this...
来源: Laya_社区 发布时间: 20180804
... this.mainCameraAnimation = null; this.scene = null; } Laya.class(ObjectRotate, "ObjectRotate", Laya.Script); //这是什么意思有什么作用 ObjectRotate.prototype._initialize = function (owner) { var _this = this; ObjectRotate.__super.prototype._initialize.call...
来源: Laya_社区 发布时间: 20170810
...ndler(data) { alert(2); } function completeHandler(e) { alert(1); } } Laya.class(JiHuo, "ui.JiHuo", _super); return JiHuo; })(ui.JiHuoUI); 2018-04-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 w1114367261 赞...
来源: Laya_社区 发布时间: 20180419
...ice = function(price) { this._goldButton.label = "RMB " + price; }; } Laya.class(MarketItem, "xgame.marketitem", _super); })(Laya.Box);list代码如下: var list = new Laya.List(); list.itemRender = xgame.marketitem; list.repeatX = 3; list.repeatY = 1; list.spaceX = 10; list.hScrollBarSkin = ""; /...
来源: Laya_社区 发布时间: 20170422
...ap = (function (_super) { function loadMap() { loadMap.super(this); } Laya.class(loadMap,"loadMap",_super); var _proto = loadMap.prototype; _proto.init = function() { this.num = ""; this.map = new TiledMap(); } _proto.showMap = function(num) { this.num = num; this.map.createMap("map/level/mota_map" ...
来源: Laya_社区 发布时间: 20170605
...s.Event; import laya.events.KeyBoardManager; /** * ... * @author */ public class CameraMoveScript extends Script { protected var lastMouseX:Number; protected var lastMouseY:Number; protected var yawPitchRoll:Vector3 = new Vector3(); protected var resultRotation:Quaternion = new Quaternion(); protect...
来源: Laya_社区 发布时间: 20170218