public override void refreshCurNodeData(NodeData nCurData)
        {
            base.refreshCurNodeData(nCurData);
            bool isAllAdd = true;

            for (int nIdx = 0; nIdx < 3; ++nIdx)
            {
                if (vContributeBtn[nIdx] == null)
                {
                    continue;
                }

                if (nCurData.m_pParentNode.m_pParentNode.m_nValue == 0)
                {
                    if (nIdx != 2)
                    {
                        vContributeBtn[nIdx].Enabled = false;
                        vContributeBtn[nIdx].Checked = false;
                        continue;
                    }
                }

                vContributeBtn[nIdx].Enabled = nCurData.isNodeValueAlreadyExist(nIdx) == false;
                vContributeBtn[nIdx].Checked = false;
                if (vContributeBtn[nIdx].Enabled)
                {
                    isAllAdd = false;
                }
            }
            m_panel.enableAddNodeBtn = isAllAdd == false;
            m_descLabel.Text         = string.Format("当前是{0},\n牌型是{1} \n请选择配置手牌贡献了几张牌", nCurData.m_pParentNode.m_pParentNode.desc, nCurData.desc);
        }
Exemple #2
0
        public override void refreshCurNodeData(NodeData nCurData)
        {
            base.refreshCurNodeData(nCurData);
            bool isAllAdd = true;

            for (int nIdx = 0; nIdx < (int)eCardType.eCard_Robot_Max; ++nIdx)
            {
                if (vCardTypeBtn[nIdx] == null)
                {
                    continue;
                }

                if (nCurData.m_nValue == 0)
                {
                    if (nIdx != (int)eCardType.eCard_YiDui && nIdx != (int)eCardType.eCard_TongHua && nIdx != (int)eCardType.eCard_ShunZi && nIdx != (int)eCardType.eCard_GaoPai)
                    {
                        vCardTypeBtn[nIdx].Enabled = false;
                        vCardTypeBtn[nIdx].Checked = false;
                        continue;
                    }
                }

                vCardTypeBtn[nIdx].Enabled = nCurData.isNodeValueAlreadyExist(nIdx) == false;
                vCardTypeBtn[nIdx].Checked = false;
                if (vCardTypeBtn[nIdx].Enabled)
                {
                    isAllAdd = false;
                }
            }
            m_panel.enableAddNodeBtn = isAllAdd == false;
            m_descLabel.Text         = string.Format("当前是{0},请选择配置的牌型", nCurData.desc);
        }
        public override void refreshCurNodeData(NodeData nCurData)
        {
            base.refreshCurNodeData(nCurData);
            bool isAllAdd = true;
            for (int nIdx = 0; nIdx < 15; ++nIdx)
            {
                if (vCardFaceValue[nIdx] == null)
                {
                    continue;
                }

                if (nIdx == 0)
                {
                    if ( m_pCurNodeData.m_pParentNode.m_nValue != 3 )
                    {
                        vCardFaceValue[nIdx].Enabled =  false;
                        vCardFaceValue[nIdx].Checked = false;
                        continue;
                    }
                }

                vCardFaceValue[nIdx].Enabled = nCurData.isNodeValueAlreadyExist(nIdx) == false;
                vCardFaceValue[nIdx].Checked = false;
                if (vCardFaceValue[nIdx].Enabled)
                    isAllAdd = false;
            }
            m_panel.enableAddNodeBtn = isAllAdd == false;
            m_descLabel.Text = string.Format("当前是{0},\n牌型是{1} \n请选择配置牌面值", nCurData.m_pParentNode.desc, nCurData.desc);
        }
        public override void refreshCurNodeData(NodeData nCurData)
        {
            base.refreshCurNodeData(nCurData);
            bool isAllAdd = true;
            for (int nIdx = 0; nIdx < (int)eCardType.eCard_Robot_Max; ++nIdx)
            {
                if (vCardTypeBtn[nIdx] == null)
                {
                    continue;
                }

                if ( nCurData.m_nValue == 0)
                {
                    if (nIdx != (int)eCardType.eCard_YiDui && nIdx != (int)eCardType.eCard_TongHua && nIdx != (int)eCardType.eCard_ShunZi && nIdx != (int)eCardType.eCard_GaoPai )
                    {
                        vCardTypeBtn[nIdx].Enabled = false;
                        vCardTypeBtn[nIdx].Checked = false;
                        continue;
                    }
                }

                vCardTypeBtn[nIdx].Enabled = nCurData.isNodeValueAlreadyExist(nIdx) == false;
                vCardTypeBtn[nIdx].Checked = false;
                if (vCardTypeBtn[nIdx].Enabled)
                    isAllAdd = false;
            }
            m_panel.enableAddNodeBtn = isAllAdd == false;
            m_descLabel.Text = string.Format("当前是{0},请选择配置的牌型", nCurData.desc);
        }