|
@@ -121,7 +121,30 @@ namespace GFGGame
|
|
|
if (LeagueDataManager.Instance.TeaPartyStatus != LeagueTeaPartyStatus.YesOpen)
|
|
|
return;
|
|
|
|
|
|
- TeapartyStartChallenge();
|
|
|
+ string strAlertText = "";
|
|
|
+ var roleContainerList = LeagueDataManager.Instance.RoleContainerList;
|
|
|
+ List<int> TeapartyRoleIdList = new List<int>();
|
|
|
+ foreach (var info in roleContainerList) {
|
|
|
+ if (info.PerNum <= 0)
|
|
|
+ TeapartyRoleIdList.Add(info.TeapartyRoleId);
|
|
|
+ }
|
|
|
+ if (TeapartyRoleIdList.Count > 0) {
|
|
|
+ string strRoleName = "";
|
|
|
+ for (int index = 1; index < TeapartyRoleIdList.Count; index++) {
|
|
|
+ strRoleName = strRoleName + teapartyRoleCfg[index].name;
|
|
|
+ if (index < TeapartyRoleIdList.Count - 1)
|
|
|
+ strRoleName = strRoleName + "、";
|
|
|
+ }
|
|
|
+ strAlertText = string.Format("茶话会角色:{0}参与人数不足,确认是否开启!" ,strRoleName);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ strAlertText = "是否开启茶话会?";
|
|
|
+
|
|
|
+ AlertUI.Show(strAlertText)
|
|
|
+ .SetLeftButton(true, "否").SetRightButton(true, "是", (object data) =>
|
|
|
+ {
|
|
|
+ TeapartyStartChallenge();
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
private async void TeapartyStartChallenge()
|
|
@@ -129,7 +152,7 @@ namespace GFGGame
|
|
|
bool result = await LeagueSproxy.TeapartyStartChallenge(RoleDataManager.roleId);
|
|
|
if (result)
|
|
|
{
|
|
|
- ViewManager.Show<LeagueTeaPartyShowView>();
|
|
|
+ TeaPartyStatuChange();
|
|
|
}
|
|
|
}
|
|
|
|