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); } } } } }
public void Load(CUIFormScript form) { if (form == null) { return; } CUICommonSystem.LoadUIPrefab("UGUI/Form/System/Player/HonorInfo", "pnlHonorInfo", form.GetWidget(9), form); }
public void Load(CUIFormScript form) { CUICommonSystem.LoadUIPrefab("UGUI/Form/System/Mall/BuyHero", "pnlBuyHero", form.GetWidget(3), form); }
public void Load(CUIFormScript form) { CUICommonSystem.LoadUIPrefab("UGUI/Form/System/Mall/FactoryShop", "pnlFactoryShop", form.GetWidget(3), form); }
public void Load(CUIFormScript form) { CUICommonSystem.LoadUIPrefab(CSymbolSystem.s_symbolRecommendModulePath, CSymbolSystem.s_symbolRecommendPanel, form.GetWidget(3), form); }