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
File diff suppressed because it is too large Load Diff
@@ -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() {}
}
@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "ee20a76b-ac7e-4c9e-becf-26d6912c69df",
"files": [],
"subMetas": {},
"userData": {}
}
@@ -9,10 +9,10 @@ import {
tween,
Vec3,
} from "cc";
import li_BaseView from "../../Main/Common/li_BaseView";
import LanguageUtils, { LanguageType } from "../../Main/Common/LanguageUtils";
import AudioManager from "../../Main/Manager/AudioManager";
import { ConfigManager } from "../../chat18x/manager/ConfigManager";
import li_BaseView from "../../../Main/Common/li_BaseView";
import LanguageUtils, { LanguageType } from "../../../Main/Common/LanguageUtils";
import AudioManager from "../../../Main/Manager/AudioManager";
import { ConfigManager } from "../../manager/ConfigManager";
const { ccclass, property } = _decorator;