update chat exp

This commit is contained in:
2025-09-16 19:03:00 +08:00
parent 141c6a5909
commit 4e00f2a382
6 changed files with 1104 additions and 874 deletions
+10 -4
View File
@@ -377,9 +377,15 @@ export class ChatPanel extends li_BaseView implements IChatPanelCallback {
}
}
onDialogUpdate() {
onDialogUpdate(isPlayer: boolean) {
if (this.layout) {
this.layout.UpdateDialog(DialogManager.getInstance().getDialogs());
if (isPlayer) {
this.layout.updatePlayerDialog(
DialogManager.getInstance().GetPlayerDialog()
);
} else {
this.layout.updateAIDialogs(DialogManager.getInstance().GetAIDialog());
}
}
}
protected onEnable(): void {
@@ -425,9 +431,9 @@ export class ChatPanel extends li_BaseView implements IChatPanelCallback {
/**
* 对话更新回调
*/
public onDialogUpdated(): void {
public onDialogUpdated(isPlayer: boolean): void {
// 更新对话显示
this.onDialogUpdate();
this.onDialogUpdate(isPlayer);
}
/**