大约有 3 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0013 秒)
...; import Handler = Laya.Handler; import Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Laya.CLICK, this, this.onBtnClick); this.btn2.on(Laya.CLICK, this, ...
来源: Laya_示例 发布时间: 20241118
... % 60 === 0) { this.text.text = Stat.FPS.toString(); } } } class Character extends Sprite { public static WIDTH: number = 110; public static HEIGHT: number = 110; private speed: number = 5; private bloodBar: Sprite; private animation: Animation; private nameLabel: Text; constructor(images: Array) { ...
来源: Laya_示例 发布时间: 20241118
...; input.inputElementYAdjuster = 1; return input } } } class ListItemRender extends Box { private label: Label; constructor() { super(); this.size(100, 20); this.label = new Label(); this.label.fontSize = 12; this.label.color = "#FFFFFF"; this.addChild(this.label); } public setLabel(value: string): v...
来源: Laya_示例 发布时间: 20241118