This commit is contained in:
2025-09-17 16:12:54 +08:00
parent 586ea3848d
commit be1389df98
16 changed files with 621 additions and 178 deletions
@@ -4,6 +4,7 @@ import Utils from "db://assets/Scripts/Main/Common/Utils";
import { GButton } from "db://assets/Scripts/Main/Common/GButton";
import { NavigationManager, PanelType } from "../../manager/NavigationManager";
import { NavigationBtn } from "../items/NavigationBtn";
import { ChatHistoryManager } from "../../manager/ChatHistoryManager";
const { ccclass, property } = _decorator;
@@ -65,6 +66,14 @@ export class NavigationPanel extends li_BaseView {
() => NavigationManager.Instance.switchToPanel(PanelType.PERSONAL),
this
);
GButton.BandClick(
this._nodeTab.CleanHistoryBtn,
() => {
ChatHistoryManager.Instance.clearAllHistory();
},
this
);
}
/**
@@ -73,8 +82,6 @@ export class NavigationPanel extends li_BaseView {
*/
public updateButtonStates(activePanel: PanelType) {
this.currentActivePanel = activePanel;
this._nodeTab.CurrentPanel.getComponent(Label).string =
this.currentActivePanel;
this.refreshButtonVisuals();
}