|
@@ -2,6 +2,7 @@
|
|
|
using System.Collections.Generic;
|
|
|
using FairyGUI;
|
|
|
using UI.Studio;
|
|
|
+using UnityEngine;
|
|
|
|
|
|
namespace GFGGame
|
|
|
{
|
|
@@ -24,7 +25,9 @@ namespace GFGGame
|
|
|
protected override void OnShown()
|
|
|
{
|
|
|
_ui.m_c1.selectedIndex = 1;
|
|
|
- _ui.m_listProperty.numItems = StudioDataManager.Instance.GetStudioCfgListByViewName(typeof(StudioPropertyView).FullName).Count;
|
|
|
+ _ui.m_listProperty.numItems = StudioCfgArray.Instance.GetCfgs(typeof(StudioPropertyView).Name).Length;
|
|
|
+ _ui.m_listProperty.selectedIndex = 0;
|
|
|
+ this.studioCfg = StudioCfgArray.Instance.GetCfgs(typeof(StudioPropertyView).Name)[0];
|
|
|
base.OnShown();
|
|
|
|
|
|
}
|
|
@@ -43,13 +46,12 @@ namespace GFGGame
|
|
|
{
|
|
|
GButton item = obj.asButton;
|
|
|
|
|
|
- item.data = StudioCfgArray.Instance.GetCfgs(typeof(StudioMetalView).FullName)[index];
|
|
|
+ item.data = StudioCfgArray.Instance.GetCfgs(typeof(StudioPropertyView).Name)[index];
|
|
|
}
|
|
|
private void OnClickListProperty(EventContext context)
|
|
|
{
|
|
|
GButton item = (context.data as GObject).asButton;
|
|
|
|
|
|
- // UI_ListPropertyItem item = UI_ListPropertyItem.Proxy(context.data as GObject);
|
|
|
this.studioCfg = item.data as StudioCfg;
|
|
|
this.storyLevelCfgs = StoryLevelCfgArray.Instance.GetCfgs(this.studioCfg.type, this.studioCfg.subType, this.studioCfg.id);
|
|
|
_ui.m_list.numItems = this.storyLevelCfgs.Length;
|