大约有 432 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)
...*停止播放 */ __proto.stop=function(){ _super.prototype.stop.call(this); /** *停止播放。 */ __proto.stop=function(){ if (this.completeHandler)this.completeHandler.run(); } 猜测bug原因如下:...
来源: Laya_社区 发布时间: 20190827
...ends Laya.Image{ isShow:boolean = false; name:string = ""; constructor() { super(); } loadImageAndPos(name:string,posX:number,posY:number):void { this.name = name; this.anchorX = 0; this.anchorY = 0; this.x = posX; //这里是256*整数倍的叠加 每张图片都是256*256大小的地图块 this....
来源: Laya_社区 发布时间: 20190315
...ic are: Laya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, fun...
来源: Laya_社区 发布时间: 20180315
... class ShopTitle extends Laya.Script{ public title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat = new Laya.StandardMaterial(); sprite3DMat.cull = Laya.BaseMaterial.CULL_NO...
来源: Laya_社区 发布时间: 20180814
...a.Browser; export class ViewLogin extends ui.loginViewUI { constructor() { super(); this.smo this.visible = false; 我的问题是UI界面如何对齐,不是舞台。。 2018-02-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 taofljf...
来源: Laya_社区 发布时间: 20180206
...才代码路径有误,更正如下 constructor() { super(); Laya.stage.on(Laya.Event.KEY_UP, this, this.onKeyUp); } onKeyUp(e: Laya.Event) { if (e.keyCode == 65) {//A console.log("释放资源false") ...
来源: Laya_社区 发布时间: 20170317
... horizontalSpace: number = 5; private sprite: Laya.Sprite; constructor() { super(); this.sprite = new Laya.Sprite(); } drawText(x: number, y: number, w: number, h: number) { console.log(2222); var j = 0;//控制行列 var printNumber = 0;//当前输出字数 var fonts = this.fontSize + "px" + " " +t...
来源: Laya_社区 发布时间: 20191103
...; public btnClose:Laya.Button; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(GmPanelUI.uiView); } } } 2.0之前版本,是不会把Laya.前缀...
来源: Laya_社区 发布时间: 20190128
...eUI { private tip:Laya.TipManager = new Laya.TipManager(); constructor() { super(); this.popupEffect= new Laya.Handler(this, function(dialog:Dialog):void { dialog.scale(1, 1); Laya.Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 2000, Laya.Ease.bounceOut...
来源: Laya_社区 发布时间: 20180620
...tmap extends Laya.Image { private szurl:string="" constructor(url:string){ super() this.onUrlChangeHandler(url); } protected onUrlChangeHandler(url:string):void { if(this.szurl!="") this.disp() this.szurl=url; if(url==null){ this.graphics.clear(); }else{ this.skin=url; } } public disp(){ thi...
来源: Laya_社区 发布时间: 20181201