Esempio n. 1
0
 public void ShowMenuByCheck(int checkType, int value, int seat)
 {
     HideMenuAndChi();
     _checkCard = value;
     if ((checkType & (int)Enum_CPGHMenuType.Chi) == (int)Enum_CPGHMenuType.Chi)
     {
         CheckChi(value, seat);
     }
     //绝杠特殊显示
     if ((checkType & (int)Enum_CPGHMenuType.Peng) == (int)Enum_CPGHMenuType.Peng)
     {
         if (value.Equals(App.GetGameManager <Lyzz2DGameManager>().FanNum) && Data.IsGangSelect)
         {
             checkType |= (int)Enum_CPGHMenuType.Peng;
             checkType ^= (int)Enum_CPGHMenuType.Peng;
             checkType |= (int)Enum_CPGHMenuType.JueGang;
         }
     }
     if ((checkType & (int)Enum_CPGHMenuType.Gang) == (int)Enum_CPGHMenuType.Gang)
     {
         _gangList.Clear();
         FindAnGang();
         FindPengGang();
     }
     if ((checkType & (int)Enum_CPGHMenuType.JueGang) == (int)Enum_CPGHMenuType.JueGang)
     {
         YxDebug.Log("这里是绝杠");
         checkType |= (int)Enum_CPGHMenuType.Gang;
         checkType ^= (int)Enum_CPGHMenuType.Gang;
     }
     Menus.DisableAll();
     Menus.EnableCondition(checkType);
     InteraptMenu.Instance.ShowMenu(Menus, DEF_MENU_TIMEOUT);
 }
Esempio n. 2
0
 // 回合结束,清理菜单
 public void ClearMenu()
 {
     Menus.DisableAll();
     InteraptMenu.Instance.Revert();
 }