大约有 283 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0037 秒)
... var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var L...
来源: Laya_示例 发布时间: 20240929
...[TypeError: undefined is not an object(evaluating 'BKCanvasRenderContext.__super.call')];line = 61647,column= 42, 2018-12-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 183*****470 赞同来自: 是不是要将...
来源: Laya_社区 发布时间: 20181211
...的方式进行管理对象池: export class EffectA { constructor() { super(); } static create(): EffectA { Pool.getItemByClass(EffectA); } recover(): void { Pool.recoverByClass(this); } } export class EffectB { constructor() { super(); } static create(): EffectB { Pool.getItemByClass(EffectB); }...
来源: Laya3.0_文档 发布时间: 20230303
...rivate skin_lock:Laya.Image; private skin_inUse:Laya.Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.initBuild(); this.skin_btn_use.on(Laya.Event.CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); } //btn 有宽高 2018-08-28 添加评论 ...
来源: Laya_社区 发布时间: 20180828
...码如下: class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun == null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); } } 2019-11-19 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...
来源: Laya_社区 发布时间: 20191109
... static width: number = 1188; static height: number = 594; constructor() { super(); Laya.loader.load("res/images/map_01.png", Laya.Handler.create(this, this.bgLoaded)); } bgLoaded(): void { let t: Laya.Texture = Laya.loader.getRes("res/images/map_01.png"); this.width = 1000; this.height = 500; this....
来源: Laya_社区 发布时间: 20170714
...同来自: 实验了下,将TextPageUI.surper(this);修改成TextPageUI.__super.call(this);就可以了。 2018-12-25 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 鱿鱼小丝 相关问题 文本如何自动换行 关于文本遮挡 ...
来源: Laya_社区 发布时间: 20181224
...ene文件 export default class GameUI extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //加载场景文件 this.loadScene("test/TestScene...
来源: Laya_社区 发布时间: 20190730
... </span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,this,this.play) ...
来源: Laya_社区 发布时间: 20180314
...} btColObj.setCollisionFlags(flags); this._nativeColliderObject=btColObj; _super.prototype._onAdded.call(this); }报错的意思是 physics3D是undefine,是需要在哪儿初始化一下物理吗 2019-03-21 0 0 分享 微博 QZONE 微信 happyfire 赞同来自: 自己研究中,好像是物理...
来源: Laya_社区 发布时间: 20190321