大约有 1,102 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0064 秒)
Laya_社区(444) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(51) Laya2.0_api(35) laya_api(27)
...以扩展一下 第一步 修改此类: class HTMLHitRect { constructor() { this.rec = new Laya.Rectangle(); this.isMouseOver = false; this.reset(); } reset() { this.rec.reset(); ...
来源: Laya_社区 发布时间: 20200724
...放经过工具处理后的 swf 动画。 Hierarchy Sprite MovieClip Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize basePath hitTestPrior interval loop mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alp...
来源: Laya3.0_api 发布时间: 20231115
...rty } = Laya; @regClass() export class UI_HScrollBar extends Laya.Script { constructor() { super(); } // 文本组件,用于显示滚动条的value值 public text: Laya.Text; // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //...
来源: Laya3.0_文档 发布时间: 20240910
...rty } = Laya; @regClass() export class UI_VScrollBar extends Laya.Script { constructor() { super(); } // 文本组件,用于显示滚动条的value值 public text: Laya.Text; // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //...
来源: Laya3.0_文档 发布时间: 20240910
...面的codeclass LoaderManager { private progressUI: UIBase; private token; constructor(token) { Laya.loader.load([{ url: "res/ui/LoadProgress.fui", type: Loader.BUFFER }], Handler.create(this, this.loadProgress)) this.token = token; } public loadProgress() { this.progressUI = UIBase.create(LoadProgr...
来源: Laya_社区 发布时间: 20171204
...new Laya.Vector3(-0.05, 0, 0); translateD = new Laya.Vector3( 0.05, 0, 0); constructor() { super(); //添加3D场景 var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; this.scene3d = scene; //添加照相机 var camera: Laya.Camera = (scene.addChild(new Laya.Camera(0,...
来源: Laya_社区 发布时间: 20190618
...另附上demo class Main { private _roomId = 0; constructor(roomId?: number) { this._roomId = roomId; Laya.init(750, 1218, Laya.WebGL); Laya.Browser.document.title = 'GG游戏; if (Laya.Browser.onPC) { ...
来源: Laya_社区 发布时间: 20181208
... //给自己注册的字体起个名 private fontName: string = "diyFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例化位图字体类,并加载位图字体 */ loadBitmapFont(): void { let bitmapFont: Laya.BitmapFont = new Laya.BitmapF...
来源: Laya2.0_文档 发布时间: 20210715
...import Stage = laya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHANGE, this, this.fitDOMElements_scroll); } private fitDOMElements(a, ...
来源: Laya_社区 发布时间: 20170720
...aya.Sprite; private rowHeight:number = 30; private rowSpacing:number = 10; constructor() { Laya.init(600,400); Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONT...
来源: Laya_示例 发布时间: 20250225