update
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user