|
@@ -36,7 +36,8 @@ namespace GFGGame
|
|
_ui.m_btnMemberLog.onClick.Add(OnBtnMemberLogClick);
|
|
_ui.m_btnMemberLog.onClick.Add(OnBtnMemberLogClick);
|
|
_ui.m_btnExit.onClick.Add(OnBtnExitClick);
|
|
_ui.m_btnExit.onClick.Add(OnBtnExitClick);
|
|
_ui.m_btnExit1.onClick.Add(OnBtnExitClick);
|
|
_ui.m_btnExit1.onClick.Add(OnBtnExitClick);
|
|
-
|
|
|
|
|
|
+ _ui.m_comChairman.target.onClick.Add(OnShowOhterInfo);
|
|
|
|
+ _ui.m_comCoChairman.target.onClick.Add(OnShowOhterInfo);
|
|
_ui.m_list.itemRenderer = RenderListItem;
|
|
_ui.m_list.itemRenderer = RenderListItem;
|
|
_ui.m_list.SetVirtual();
|
|
_ui.m_list.SetVirtual();
|
|
|
|
|
|
@@ -201,6 +202,7 @@ namespace GFGGame
|
|
com.m_loaHeadBorder.url = "";
|
|
com.m_loaHeadBorder.url = "";
|
|
com.m_btnAppoint.visible = false;
|
|
com.m_btnAppoint.visible = false;
|
|
com.m_loaTitle.url = "";
|
|
com.m_loaTitle.url = "";
|
|
|
|
+ com.target.data = null;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -217,9 +219,23 @@ namespace GFGGame
|
|
com.m_btnAppoint.onClick.Add(OnBtnAppointClick);
|
|
com.m_btnAppoint.onClick.Add(OnBtnAppointClick);
|
|
}
|
|
}
|
|
com.m_btnAppoint.data = memberData;
|
|
com.m_btnAppoint.data = memberData;
|
|
|
|
+ com.target.data = roleId;
|
|
}
|
|
}
|
|
UI_ComLeader.Proxy();
|
|
UI_ComLeader.Proxy();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ private async void OnShowOhterInfo(EventContext context)
|
|
|
|
+ {
|
|
|
|
+ GObject gObject = context.sender as GObject;
|
|
|
|
+ if (gObject.data == null)
|
|
|
|
+ {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ long roleId = (long)gObject.data;
|
|
|
|
+ OtherRoleInfoData roleInfoData = LeagueDataManager.Instance.GetMemberRoleInfo(roleId);
|
|
|
|
+ OtherRoleInfoDetailData detailData = await RoleInfoSProxy.ReqOtherRoleDetailInfo(roleId);
|
|
|
|
+ ViewManager.Show<OtherRoleInfoView>(new object[] { roleInfoData, detailData }, new object[] { typeof(LeagueView).FullName, null });
|
|
|
|
+ }
|
|
private void RenderListItem(int index, GObject obj)
|
|
private void RenderListItem(int index, GObject obj)
|
|
{
|
|
{
|
|
LeagueMemberData memberData = _leagueData.LeagueMemberDatas[_memberIds[index]];
|
|
LeagueMemberData memberData = _leagueData.LeagueMemberDatas[_memberIds[index]];
|
|
@@ -250,6 +266,11 @@ namespace GFGGame
|
|
item.m_btnAppoint.onClick.Add(OnBtnAppointClick);
|
|
item.m_btnAppoint.onClick.Add(OnBtnAppointClick);
|
|
}
|
|
}
|
|
item.m_btnAppoint.data = memberData;
|
|
item.m_btnAppoint.data = memberData;
|
|
|
|
+ if (item.m_comHead.data == null)
|
|
|
|
+ {
|
|
|
|
+ item.m_comHead.onClick.Add(OnShowOhterInfo);
|
|
|
|
+ }
|
|
|
|
+ item.m_comHead.data = memberData.RoleInfo.roleId;
|
|
UI_ListMemberItem.ProxyEnd();
|
|
UI_ListMemberItem.ProxyEnd();
|
|
}
|
|
}
|
|
|
|
|