using System.Collections.Generic; using FairyGUI; using UI.Studio; namespace GFGGame { //织物副本 public class StudioFabricView : StudioBaseView { public override void Dispose() { base.Dispose(); } protected override void OnInit() { base.OnInit(); _ui.m_btnBack.onClick.Add(OnClickBtnBack); } protected override void OnShown() { base.OnShown(); _ui.m_c1.selectedIndex = 0; this.studioCfg = StudioDataManager.Instance.GetStudioCfgListByViewName(typeof(StudioFabricView).FullName)[0]; this.storyLevelCfgs = StoryLevelCfgManager.Instance.GetCfgs(this.studioCfg.type, this.studioCfg.id); _ui.m_list.numItems = this.storyLevelCfgs.Length; } protected override void OnHide() { base.OnHide(); } private void OnClickBtnBack() { ViewManager.GoBackFrom(typeof(StudioFabricView).FullName); } } }