Merge branch 'main' of 47.107.44.202:xionglijia/18xchat
This commit is contained in:
+1621
-188
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": {}
|
||||||
|
}
|
||||||
+4
-4
@@ -9,10 +9,10 @@ import {
|
|||||||
tween,
|
tween,
|
||||||
Vec3,
|
Vec3,
|
||||||
} from "cc";
|
} from "cc";
|
||||||
import li_BaseView from "../../Main/Common/li_BaseView";
|
import li_BaseView from "../../../Main/Common/li_BaseView";
|
||||||
import LanguageUtils, { LanguageType } from "../../Main/Common/LanguageUtils";
|
import LanguageUtils, { LanguageType } from "../../../Main/Common/LanguageUtils";
|
||||||
import AudioManager from "../../Main/Manager/AudioManager";
|
import AudioManager from "../../../Main/Manager/AudioManager";
|
||||||
import { ConfigManager } from "../../chat18x/manager/ConfigManager";
|
import { ConfigManager } from "../../manager/ConfigManager";
|
||||||
|
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
Reference in New Issue
Block a user