Esempio n. 1
0
 public void Clear()
 {
     this.m_selectMenuType = enSymbolMenuType.SymbolEquip;
     this.m_symbolWearCtrl.Clear();
     this.m_symbolMakeCtrl.Clear();
     this.m_symbolRcmdCtrl.Clear();
 }
Esempio n. 2
0
        private void OnOpenSymbolForm(CUIEvent uiEvent)
        {
            this.m_selectMenuType = enSymbolMenuType.SymbolEquip;
            this.OpenSymbolForm();
            Singleton <CLobbySystem> .GetInstance().OnCheckSymbolEquipAlert();

            CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_SymbolBtn);
        }
Esempio n. 3
0
        private void OnMenuSelect(CUIEvent uiEvent)
        {
            CUIFormScript srcFormScript = uiEvent.m_srcFormScript;

            if (srcFormScript == null)
            {
                return;
            }
            CUIListScript component = uiEvent.m_srcWidget.GetComponent <CUIListScript>();

            if (null == component)
            {
                return;
            }
            int selectedIndex = component.GetSelectedIndex();

            this.m_selectMenuType = (enSymbolMenuType)selectedIndex;
            this.LoadSubModule(srcFormScript, uiEvent);
        }
Esempio n. 4
0
        private void OnMenuSelect(CUIEvent uiEvent)
        {
            CUIFormScript srcFormScript = uiEvent.m_srcFormScript;

            if ((srcFormScript != null) && (srcFormScript.transform.Find(s_symbolEquipPanel) != null))
            {
                CUIListScript component = uiEvent.m_srcWidget.GetComponent <CUIListScript>();
                if (null != component)
                {
                    int selectedIndex = component.GetSelectedIndex();
                    this.m_selectMenuType = (enSymbolMenuType)selectedIndex;
                    Transform transform = srcFormScript.transform;
                    if (this.m_selectMenuType == enSymbolMenuType.SymbolEquip)
                    {
                        transform.Find(s_symbolEquipPanel).gameObject.CustomSetActive(true);
                        transform.Find(s_symbolMakePanel).gameObject.CustomSetActive(false);
                        srcFormScript.GetWidget(9).CustomSetActive(false);
                        this.m_symbolWearCtrl.SwitchToSymbolWearPanel(uiEvent);
                    }
                    else if (this.m_selectMenuType == enSymbolMenuType.SymbolMake)
                    {
                        transform.Find(s_symbolEquipPanel).gameObject.CustomSetActive(false);
                        transform.Find(s_symbolMakePanel).gameObject.CustomSetActive(true);
                        srcFormScript.GetWidget(9).CustomSetActive(false);
                        this.m_symbolMakeCtrl.SwitchToSymbolMakePanel(uiEvent);
                    }
                    else if (this.m_selectMenuType == enSymbolMenuType.SymbolRecommend)
                    {
                        transform.Find(s_symbolEquipPanel).gameObject.CustomSetActive(false);
                        transform.Find(s_symbolMakePanel).gameObject.CustomSetActive(false);
                        srcFormScript.GetWidget(9).CustomSetActive(true);
                        this.m_symbolRcmdCtrl.SwitchToSymbolRcmdPanel(uiEvent);
                        Singleton <CMiShuSystem> .GetInstance().HideNewFlag(component.GetElemenet(1).gameObject, enNewFlagKey.New_BtnSymbolFlagKey_V1);

                        Singleton <CBattleGuideManager> .GetInstance().OpenBannerDlgByBannerGuideId(7, null);
                    }
                    uiEvent.m_srcFormScript.GetWidget(1).CustomSetActive(this.m_selectMenuType == enSymbolMenuType.SymbolEquip);
                    uiEvent.m_srcFormScript.GetWidget(8).CustomSetActive(this.m_selectMenuType != enSymbolMenuType.SymbolEquip);
                }
            }
        }
Esempio n. 5
0
 private void OnOpenSymbolFormToMakeTab(CUIEvent uiEvent)
 {
     this.m_selectMenuType = enSymbolMenuType.SymbolMake;
     this.OpenSymbolForm();
 }