fix ui for dlg FriendList

This commit is contained in:
VuNgocHaiC7
2026-03-19 17:50:49 +07:00
parent 82994a9c1c
commit f9dbdc1c3c
4 changed files with 66 additions and 23 deletions
@@ -738,7 +738,7 @@ namespace BrewMonster.Network
string name = string.IsNullOrEmpty(askerName) ? ("Player " + srcroleid) : askerName;
CECUIManager.Instance?.ShowMessageBoxYesAndNo(
title: "Friend Request",
message: $"{name} wants to add you as a friend.",
message: $"{name} muốn hảo hữu với bạn.",
dlg: null,
onClickedYes: () => Friend_AddResponse(xid, agree: true),
onClickedNo: () => Friend_AddResponse(xid, agree: false));
@@ -747,7 +747,7 @@ namespace BrewMonster.Network
private void OnAddFriendResultReceived(byte retcode, string message)
{
CECUIManager.Instance?.ShowMessageBoxYes(
title: retcode == 0 ? "Friend added" : "Add friend failed",
title: retcode == 0 ? "Friend added" : "Đã có trong danh sách bạn bè, không thể hảo hữu",
message: message,
dlg: null,
null);
@@ -891,4 +891,4 @@ namespace BrewMonster.Network
return v;
}
}
}
}