聊天记录功能-初步

This commit is contained in:
2025-08-13 16:53:27 +08:00
parent a859fe51d1
commit ef02eedac6
9 changed files with 6223 additions and 497 deletions
+19 -4
View File
@@ -48,7 +48,7 @@ export class ChatPanel extends li_BaseView {
private _nodeTab: any = {};
nameKey: string;
private onLanguageChangeCallback = () => {
if (!this.girlName) return;
this.girlName.string = LanguageUtils.getText(this.nameKey);
@@ -73,11 +73,23 @@ export class ChatPanel extends li_BaseView {
this.onDialogUpdate
);
Utils.addInnerEL(InnerMsgCode.LanguageChange, this, this.onLanguageChangeCallback);
Utils.addInnerEL(
InnerMsgCode.LanguageChange,
this,
this.onLanguageChangeCallback
);
}
onDestroy(): void {
Utils.removeInnerEL(InnerMsgCode.Chat_DialogRefresh, this, this.onDialogUpdate);
Utils.removeInnerEL(InnerMsgCode.LanguageChange, this, this.onLanguageChangeCallback);
Utils.removeInnerEL(
InnerMsgCode.Chat_DialogRefresh,
this,
this.onDialogUpdate
);
Utils.removeInnerEL(
InnerMsgCode.LanguageChange,
this,
this.onLanguageChangeCallback
);
}
refresh(id: number) {
this.id = id;
@@ -146,4 +158,7 @@ export class ChatPanel extends li_BaseView {
//ViewManager.I.openBundlesView("GirlListPanel");
}
onClickRecord() {
ViewManager.I.openBundlesView("RecordPanel", this.id);
}
}