|
@@ -33,7 +33,7 @@ namespace GFGGame
|
|
|
_ui.m_c1.selectedIndex = _typeSelectIndex;
|
|
|
|
|
|
StudioDataManager.Instance.VIEW_NAME = typeof(StudioPropertyView).FullName;
|
|
|
- List<StudioCfg> studioCfgs = StudioCfgArray.Instance.GetCfgs(typeof(StudioPropertyView).Name);
|
|
|
+ List<StudioCfg> studioCfgs = StudioCfgArray.Instance.GetCfgsByfunId(typeof(StudioPropertyView).Name);
|
|
|
|
|
|
_ui.m_listProperty.numItems = studioCfgs.Count;
|
|
|
_propertySelectIndex = TimeUtil.CheckDayOfWeek(studioCfgs[_propertySelectIndex].timeArr) ? _propertySelectIndex : firstOpenProperty;
|
|
@@ -41,7 +41,7 @@ namespace GFGGame
|
|
|
|
|
|
this.studioCfg = studioCfgs[_ui.m_listProperty.selectedIndex];
|
|
|
this.studioData = StudioDataManager.Instance.GetStudioDataById(this.studioCfg.id);
|
|
|
- this.storyLevelCfgs = StoryLevelCfgArray.Instance.GetCfgs(this.studioCfg.type, this.studioCfg.subType, this.studioCfg.id);
|
|
|
+ this.storyLevelCfgs = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(this.studioCfg.type, this.studioCfg.subType, this.studioCfg.id);
|
|
|
|
|
|
_ui.m_list.numItems = this.storyLevelCfgs.Count;
|
|
|
_ui.m_list.ScrollToView(curIndex);
|
|
@@ -62,7 +62,7 @@ namespace GFGGame
|
|
|
}
|
|
|
private void ListPropertyItemRender(int index, GObject obj)
|
|
|
{
|
|
|
- List<StudioCfg> studioCfgs = StudioCfgArray.Instance.GetCfgs(typeof(StudioPropertyView).Name);
|
|
|
+ List<StudioCfg> studioCfgs = StudioCfgArray.Instance.GetCfgsByfunId(typeof(StudioPropertyView).Name);
|
|
|
GButton item = obj.asButton;
|
|
|
item.GetChild("icon0").asLoader.url = string.Format("ui://Studio/gzsltb_{0}", index + 1);
|
|
|
item.GetChild("icon1").asLoader.url = string.Format("ui://Studio/gzsatb_{0}", index + 1);
|
|
@@ -76,7 +76,7 @@ namespace GFGGame
|
|
|
|
|
|
GButton item = (context.data as GObject).asButton;
|
|
|
int index = (int)item.data;
|
|
|
- List<StudioCfg> studioCfgs = StudioCfgArray.Instance.GetCfgs(typeof(StudioPropertyView).Name);
|
|
|
+ List<StudioCfg> studioCfgs = StudioCfgArray.Instance.GetCfgsByfunId(typeof(StudioPropertyView).Name);
|
|
|
StudioCfg studioCfg = studioCfgs[index];
|
|
|
if (!TimeUtil.CheckDayOfWeek(studioCfg.timeArr))
|
|
|
{
|
|
@@ -94,7 +94,7 @@ namespace GFGGame
|
|
|
_propertySelectIndex = index;
|
|
|
this.studioCfg = studioCfg;
|
|
|
this.studioData = StudioDataManager.Instance.GetStudioDataById(this.studioCfg.id);
|
|
|
- this.storyLevelCfgs = StoryLevelCfgArray.Instance.GetCfgs(this.studioCfg.type, this.studioCfg.subType, this.studioCfg.id);
|
|
|
+ this.storyLevelCfgs = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(this.studioCfg.type, this.studioCfg.subType, this.studioCfg.id);
|
|
|
_ui.m_list.numItems = this.storyLevelCfgs.Count;
|
|
|
_ui.m_list.ScrollToView(curIndex);
|
|
|
UpdateView();
|