41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
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() {}
|
|
}
|