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