大约有 401 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
...pannel里显示两张同样的图片显示不出来,只能显示一张 class LevelScrollUI extends ui.LevelUI { private panel:Laya.Panel; constructor() { super(); this.panel = new Laya.Panel(); this.panel.size(720, 1136); this.panel.vScrollBarSkin = "comp/vscroll.png"; Laya.stage.addChild(this.pan...
来源: Laya_社区 发布时间: 20180529
...会报错说_showGridList不存在,需要在libs/LayaAir.d.ts里,找到class MapLayer extends Sprite这一行,在下面加上 _showGridList: Array<any>;即可 wu语 • 2018-08-07 19:51 1.7.19.1版本不行
来源: Laya_社区 发布时间: 20170627
...){ 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
....scene"); this.close(); } a和b都是独立的ts类, export default class a extends ui.a {……} 同时a和b都是对应的dialog ui文件a.scene 和b.scene的runtime属性关联过去的。
来源: Laya_社区 发布时间: 20190521
...age资源 以下为加载代码,请问这样使用是否正确: class ShuiPao extends Sprite3D { constructor() { super(); let mesh = Sprite3D.load('resources/shuipao.lh'); this.addChild(mesh); ...
来源: Laya_社区 发布时间: 20170608
...aFormat; import flash.net.URLRequest; import flash.utils.ByteArray; public class UrlImage extends Sprite { private var urlLoader:URLLoader; private var l:Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function ...
来源: Laya_社区 发布时间: 20151228
...} 2018-06-21 0 2 分享 微博 QZONE 微信 1553745787用户 赞同来自: class DialogPage extends ui.DialogPageUI { 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.f...
来源: Laya_社区 发布时间: 20180620
...ol01.png"; let swimpoorpath02="Comp/yard_swimpool02.png"; export default class Yard extends Laya.Sprite { private swimpoolani:Laya.Animation; constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(thi...
来源: Laya_社区 发布时间: 20190805
...制显示速度出现打字效果等 /**古文脚本 */ export default class TextAncient extends Laya.Script { /** @prop {name:text, tips:"显示文本", type:String, default:"hello world"}*/ public text: string = "hello world"; /** @prop {name:color, tips:"字符串类型示例", type:String, def...
来源: Laya_社区 发布时间: 20191103
...题。 2018-05-08 0 0 分享 微博 QZONE 微信 Miller 赞同来自: class Item extends Laya.Box { public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image; //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this...
来源: Laya_社区 发布时间: 20180507