/************************************************************************************

 * FileName    : UIVersionUpdate.ts
 * Description : 版本调整界面
 * Version     : v1.0.0
 * CreateTime  : 2024-10-23 08:49:03
 * Author      :
 * Copyright (c) since 2024
 * ==============================================================
 * Method Description:
 *
 * ==============================================================
 ************************************************************************************/
import { _decorator, Component, Node } from 'cc';
import {tgx_class} from "db://assets/core_tgx/base/ModuleContext";
import {ModuleDef} from "db://assets/scripts/ModuleDef";
import {tgxUIController} from "db://assets/core_tgx/tgx";
import {GameUILayers} from "db://assets/scripts/GameUILayers";
import {Layout_UIVersionUpdate} from "db://assets/module_basic/ui_version_update/Layout_UIVersionUpdate";

@tgx_class(ModuleDef.BASIC)
export class UIVersionUpdate extends tgxUIController {

    constructor() {
        super("ui_version_update/ui_version_update", GameUILayers.POPUP, Layout_UIVersionUpdate);
    }

    protected onCreated(): void {
        let layout: Layout_UIVersionUpdate = this.layout as Layout_UIVersionUpdate;
        // 关闭界面
        this.onButtonEvent(layout.btnClose, () => {
            this.close();
        })

        this._initContent();
    }

    private _initContent(): void {
        let layout: Layout_UIVersionUpdate = this.layout as Layout_UIVersionUpdate;
        layout.content.string = "更新内容:\n1. 修复了xxxbug\n2. 优化了xxx功能";
    }
}