Exemple #1
0
        public void SetBtnBipai()
        {
            JhUserButton bipai = Buttons[1];

            bipai.SetText("比牌");
            bipai.SetOnClick(new List <EventDelegate> {
                OnBiPaiClick
            });
        }
Exemple #2
0
        public void SetZiDongGenZhu(bool isZdgz)
        {
            JhUserButton zdgz = Buttons[5];

            if (isZdgz)
            {
                zdgz.SetText("取消自动跟注");
            }
            else
            {
                zdgz.SetText("自动跟注");
            }
        }
Exemple #3
0
        public void SetQuXiaoBiPai(bool quxiao)
        {
            JhUserButton liangpai = Buttons[1];

            if (quxiao)
            {
                liangpai.SetText("取消比牌");
                liangpai.SetOnClick(new List <EventDelegate> {
                    OnQuXiaoQiPaiCick
                });
            }
            else
            {
                liangpai.SetText("比牌");
                liangpai.SetOnClick(new List <EventDelegate> {
                    OnBiPaiClick
                });
            }
        }
Exemple #4
0
        public void SetLiangPai(bool liang)
        {
            JhUserButton liangpai = Buttons[0];

            if (liang)
            {
                liangpai.SetText("亮牌");
                liangpai.SetOnClick(new List <EventDelegate> {
                    OnLiangPaiClick
                });
            }
            else
            {
                liangpai.SetText("弃牌");
                liangpai.SetOnClick(new List <EventDelegate> {
                    OnQiPaiCick
                });
            }
        }
Exemple #5
0
        public void SetBtnShow(int disablebyte, int outSide = 0)
        {
            LastDisableType = disablebyte;
            LastOutSide     = outSide;
            for (int i = 0; i < Buttons.Count; i++)
            {
                JhUserButton btn  = Buttons[i];
                int          type = 1 << i;
                if ((outSide & type) != 0)
                {
                    continue;
                }

                if ((disablebyte & (type)) != 0)
                {
                    btn.SetState(UIButtonColor.State.Disabled, false);
                }
                else
                {
                    btn.SetState(UIButtonColor.State.Normal, true);
                }
            }
        }
Exemple #6
0
        public void GzyzShow(bool isLook, bool isGiveUp)
        {
            int wei = KanPai | JiaZhu | GenZhu | ZiDongGenZhu | Qipai;

            if (isLook)
            {
                wei |= KanPai;
                wei ^= KanPai;
            }
            if (isGiveUp)
            {
                wei |= Qipai;
                wei ^= Qipai;
            }
            SetBtnShow(wei);

            JhUserButton bipai = Buttons[1];

            bipai.SetText("孤注一掷");
            bipai.SetOnClick(new List <EventDelegate> {
                OnGzyzClick
            });
        }