|
@@ -274,6 +274,14 @@ namespace GFGGame
|
|
|
}
|
|
|
private void UpdateChatList()
|
|
|
{
|
|
|
+ _memberIds.Sort((long a, long b) =>
|
|
|
+ {
|
|
|
+ int countA = _dataManager.ListAnsweringDatas[a];
|
|
|
+ int countB = _dataManager.ListAnsweringDatas[b];
|
|
|
+ if (countA > countB) return -1;
|
|
|
+ if (countB > countA) return 1;
|
|
|
+ return countB - countA;
|
|
|
+ });
|
|
|
_ui.m_listChat.numItems = ChatDataManager.Instance.GetChatDatas(ChatType.LeagueQuestion).Count;
|
|
|
_ui.m_listChat.scrollPane.ScrollBottom(true);
|
|
|
}
|
|
@@ -336,10 +344,12 @@ namespace GFGGame
|
|
|
{
|
|
|
ChatData chatData = ChatDataManager.Instance.ChatDatas[ChatType.LeagueQuestion][index];
|
|
|
OtherRoleInfoData roleInfo = chatData.RoleInfo;
|
|
|
- UI_ListChatItem item = UI_ListChatItem.Proxy(obj);
|
|
|
+ UI_ListChatAnswerItem item = UI_ListChatAnswerItem.Proxy(obj);
|
|
|
|
|
|
RoleInfoManager.Instance.UpdateHeadWithLv(item.m_comHead, roleInfo.headId, roleInfo.headBorderId, roleInfo.roleLv);
|
|
|
item.m_txtName.text = roleInfo.roleName;
|
|
|
+ int roldRank = _memberIds.IndexOf(roleInfo.roleId);
|
|
|
+ item.m_c1.selectedIndex = roldRank < 3 ? roldRank : 3;
|
|
|
string content = "";
|
|
|
for (int i = 0; i < chatData.Content.Length; i++)
|
|
|
{
|
|
@@ -348,7 +358,7 @@ namespace GFGGame
|
|
|
}
|
|
|
item.m_txtChatContent.text = chatData.Content;
|
|
|
|
|
|
- UI_ListChatItem.ProxyEnd();
|
|
|
+ UI_ListChatAnswerItem.ProxyEnd();
|
|
|
}
|
|
|
private string GetListChatItemResource(int index)
|
|
|
{
|