コード例 #1
0
ファイル: CSymbolSystem.cs プロジェクト: isoundy000/wzry-1
        private void OnLoadSubModule(CUIEvent uiEvent)
        {
            CUIFormScript srcFormScript = uiEvent.m_srcFormScript;

            if (srcFormScript != null)
            {
                if (uiEvent.m_srcWidget != null)
                {
                    uiEvent.m_srcWidget.CustomSetActive(false);
                }
                if (srcFormScript.transform.Find(s_symbolEquipPanel) == null)
                {
                    CUICommonSystem.LoadUIPrefab(s_symbolEquipModulePath, s_symbolEquipPanel, srcFormScript.gameObject, srcFormScript);
                    Transform transform = srcFormScript.transform.Find(s_symbolEquipPanel);
                    if (transform != null)
                    {
                        transform.SetSiblingIndex(2);
                        GameObject widget = srcFormScript.GetWidget(0);
                        if (widget != null)
                        {
                            CUIListScript component = widget.transform.GetComponent <CUIListScript>();
                            component.SelectElement(-1, false);
                            component.SelectElement((int)this.m_selectMenuType, true);
                        }
                    }
                }
            }
        }
コード例 #2
0
 public void Load(CUIFormScript form)
 {
     if (form == null)
     {
         return;
     }
     CUICommonSystem.LoadUIPrefab("UGUI/Form/System/Player/HonorInfo", "pnlHonorInfo", form.GetWidget(9), form);
 }
コード例 #3
0
 public void Load(CUIFormScript form)
 {
     CUICommonSystem.LoadUIPrefab("UGUI/Form/System/Mall/BuyHero", "pnlBuyHero", form.GetWidget(3), form);
 }
コード例 #4
0
 public void Load(CUIFormScript form)
 {
     CUICommonSystem.LoadUIPrefab("UGUI/Form/System/Mall/FactoryShop", "pnlFactoryShop", form.GetWidget(3), form);
 }
コード例 #5
0
 public void Load(CUIFormScript form)
 {
     CUICommonSystem.LoadUIPrefab(CSymbolSystem.s_symbolRecommendModulePath, CSymbolSystem.s_symbolRecommendPanel, form.GetWidget(3), form);
 }