大约有 237 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0040 秒)
... import { ui } from '../ui/layaMaxUI'; /**主界面 */ export default class Main extends ui.mainUI { /**地图链接 */ MAP_URL:string = 'res/tiled/map.json'; /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) } ...
来源: Laya_社区 发布时间: 20190218
...a.ani.bone.Templet; import laya.events.Event; public class CombatRole extends BaseRole { private var _templet:Templet; public function CombatRole() { super(); initView(); } ...
来源: Laya_社区 发布时间: 20170204
...int对象父容器rotation旋转之后检测不了碰撞 附上代码 class FishPonds extends Laya.Sprite { public 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...
来源: Laya_社区 发布时间: 20180315
..."../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(thi...
来源: Laya_社区 发布时间: 20180724
...,现在有插件开发,修改源码会有问题): export default class GifView extends Laya.Clip { /** *开始帧位置 * * @private * @memberof GifView */ private frameIndex = 0; /** *结束帧...
来源: Laya_社区 发布时间: 20201211
...的类。 * @return 此类型标识的一个对象。 */ static getItemByClass<T>(sign: string, cls: new () => T): T { if (!Pool._poolDic[sign]) return new cls(); var pool = Pool.getPoolBySign(sign); if (pool.length) { var rst = pool.pop(); rst[Pool.POOLSIGN] = false; } else { rst = new cls...
来源: Laya3.0_文档 发布时间: 20240910
...置见下图代码和附件DEMO中的TestScene.scene文件 export default class GameUI extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //...
来源: Laya_社区 发布时间: 20190730
...){ function Test(){ Test.super(this); }; Laya.class(Test, "Test", _surper); return Test; })(ui.TestUI); 报错Uncaught TypeError: Cannot read property 'call' of undefined at Function.<anonymous> (laya.core.js:127) at new Test (Test.j...
来源: Laya_社区 发布时间: 20170621
...ton注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 class Item extends Laya.Box{ public static WID: number = 147; public static HEI: number = 190; private skin_progress_chip:Laya.ProgressBar; private skin_img:Laya.Image; private skin_chipNum:Laya.Text; public skin_btn_use:Laya...
来源: Laya_社区 发布时间: 20180828
... null) 改成 if (FrameAnimation._sortIndexFun == null) 代码如下: class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun == null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); } } 2019-11-19 0 2 分享 微...
来源: Laya_社区 发布时间: 20191109