大约有 467 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0055 秒)
... flash.display.Sprite; import laya.display.Text; public class HelloLayabox extends Sprite { public function HelloLayabox() { trace("Hello,World"); //创建舞台,默认背景色是黑色的 Laya.init(600, 300); return; var txt:Text = new Text(); //设置文本内容 txt.text = "Hello Layabox"; //...
来源: Laya_社区 发布时间: 20180824
...什么在onUpdate会输出一次为空 export default class mtTest extends Laya.Script{ lab:Laya.Label; onAwake():void{ } onStart():void{ this.lab=this.owner as Laya.Label; } ...
来源: Laya_社区 发布时间: 20200602
...mport Shader = laya.webgl.shader.Shader; export class coolDownShader extends Shader { /** * 当前着色器的一个实例对象。 */ public static shader: coolDownShader = new coolDownShader(); constructor() { ...
来源: Laya_社区 发布时间: 20170606
封装类的时候 怎么在类中表示自身? class BackGround extends Laya.Sprite{ constructor() { super(); new init(); function init() { var bg1 = new Laya.Sprite(); var bg2 = new Laya.Sprite(); //背景图 // box.loadImage("../bin/background.png"); // Laya.stage.addChild(box); bg1.loadImage("....
来源: Laya_社区 发布时间: 20160926
... 林龙 赞同来自: ts 编译后的 js 代码为: class StarFlyUI extends ui.hall.HallViewUI { 2018-05-28 0 0 分享 微博 QZONE 微信 林龙 赞同来自: 用es5. 还是要靠自己 2018-05-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...
来源: Laya_社区 发布时间: 20180528
... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Tree }) public tree: Laya.Tree; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //初始化树状列表的数...
来源: Laya3.0_文档 发布时间: 20251010
...9 我截图的这个是源码 wudi199553 • 2017-11-13 19:48 class TestUI extends ui.test.TestPageUI { constructor() { super(); } } Laya.init(600, 400); Laya.stage.bgColor = "#FFFFF00"; this.onLoaded(); function onLoaded(): void { var testUI: TestUI = new TestUI(); Laya.stage.addChild(tes...
来源: Laya_社区 发布时间: 20171113
...附上代码 : (function () { 'use strict'; class GameMain extends Laya.Scene { constructor(){ super(); GameMain.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("m...
来源: Laya_社区 发布时间: 20201110
获取Sprite位置问题 class Plant extends Laya.Sprite { public body :Laya.Animation; constructor(){ super(); this.body = new Laya.Animation(); Laya.Animation.createFrames(["res/war/hero_fly1.png","res/war/hero_fly2.png"],"fly"); this.addChild(this.body); this.body.play(0,true,"fly"); //获取动...
来源: Laya_社区 发布时间: 20180427
...g.ILogger; import org.as3lib.logging.Log; public class Game extends Sprite { CONFIG::debug { private static var logger:Logger = new Logger(); private var log:ILogger; } public function Game...
来源: Laya_社区 发布时间: 20200217