大约有 397 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0043 秒)
....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
...要添加如下的示例代码,实现脚本控制ComboBox: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ComboBox }) public combobox: Laya.ComboBox; //组件被激活后执行,此时所有节点和组件均已创建完毕...
来源: Laya3.0_文档 发布时间: 20240910
...} 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
...。需要添加如下的示例代码,实现脚本控制Tab: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Tab }) public tab: Laya.Tab; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只...
来源: Laya3.0_文档 发布时间: 20240910
...unction onStartDrag(e) { this.startDrag(dragRegion, true, 100); } } Laya.class(GolfMainUI, "GolfMainUI", GolfMainPageUI); //初始化DEBUG //初始化微信小游戏 Laya.MiniAdpter.init(); //程序入口 Laya.init(500,800, WebGL); Laya.stage.scaleModel = "full"; // DebugTool.init() //激活...
来源: Laya_社区 发布时间: 20180627