This commit is contained in:
2025-09-10 18:38:20 +08:00
parent 0cbb163740
commit aa358d2e01
5 changed files with 1674 additions and 192 deletions
@@ -0,0 +1,40 @@
import { _decorator, Component, Node } from "cc";
import Utils from "../../../Main/Common/Utils";
import li_BaseView from "../../../Main/Common/li_BaseView";
import { GButton } from "../../../Main/Common/GButton";
const { ccclass, property } = _decorator;
@ccclass("SettingPanel")
export class SettingPanel extends li_BaseView {
private _nodeTab: any = {};
protected start(): void {
Utils.parseNode(this.node, this._nodeTab);
this.registerListener();
}
registerListener() {
GButton.BandClick(this._nodeTab.MusicBtn, this.switchMusic, this);
GButton.BandClick(this._nodeTab.SoundBtn, this.switchSound, this);
GButton.BandClick(
this._nodeTab.LanguageBtn,
this.openLanguageSelection,
this
);
GButton.BandClick(this._nodeTab.Language1, this.switchToEn, this);
GButton.BandClick(this._nodeTab.Language2, this.swithcToHi, this);
GButton.BandClick(this._nodeTab.closeBtn, this.close, this);
}
switchSound() {
throw new Error("Method not implemented.");
}
switchMusic() {
throw new Error("Method not implemented.");
}
openLanguageSelection() {}
switchToEn() {}
swithcToHi() {}
}