|
@@ -105,13 +105,13 @@ namespace GFGGame
|
|
|
|
|
|
private void OnTabChange()
|
|
|
{
|
|
|
- StoreTabCfg tabCfg = StoreTabCfgArray.Instance.GetCfg(_curTabIndex);
|
|
|
+ StoreTabCfg tabCfg = StoreTabCfgArray.Instance.GetCfg(_ui.m_comTab.m_c1.selectedIndex);
|
|
|
+ if (tabCfg == null) return;
|
|
|
if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(tabCfg.functionId))
|
|
|
{
|
|
|
_ui.m_comTab.m_c1.selectedIndex = _ui.m_comTab.m_c1.previsousIndex;
|
|
|
}
|
|
|
_curTabIndex = _ui.m_comTab.m_c1.selectedIndex;
|
|
|
- if (_curTabIndex == 0) return;
|
|
|
if (tabCfg.functionId == ConstFunctionId.STORE_ARENA)
|
|
|
{
|
|
|
_ui.m_listSubTab.numItems = _arenaSubTab.Count;
|
|
@@ -156,7 +156,7 @@ namespace GFGGame
|
|
|
return;
|
|
|
}
|
|
|
ViewManager.Hide(_curViewName);
|
|
|
- if (!string.IsNullOrEmpty(viewName))
|
|
|
+ if (!string.IsNullOrEmpty(viewName) && viewName != "“”")
|
|
|
{
|
|
|
ViewManager.Show("GFGGame." + viewName, index);
|
|
|
}
|