StudioFabricView.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System.Collections.Generic;
  2. using FairyGUI;
  3. using UI.Studio;
  4. namespace GFGGame
  5. {
  6. //织物副本
  7. public class StudioFabricView : StudioBaseView
  8. {
  9. public override void Dispose()
  10. {
  11. base.Dispose();
  12. }
  13. protected override void OnInit()
  14. {
  15. base.OnInit();
  16. _ui.m_btnBack.onClick.Add(OnClickBtnBack);
  17. }
  18. protected override void OnShown()
  19. {
  20. _ui.m_c1.selectedIndex = 0;
  21. this.studioCfg = StudioCfgArray.Instance.GetCfgs(typeof(StudioMetalView).FullName)[0];
  22. this.storyLevelCfgs = StoryLevelCfgArray.Instance.GetCfgs(this.studioCfg.type, this.studioCfg.subType, this.studioCfg.id);
  23. _ui.m_list.numItems = this.storyLevelCfgs.Length;
  24. base.OnShown();
  25. }
  26. protected override void OnHide()
  27. {
  28. base.OnHide();
  29. }
  30. private void OnClickBtnBack()
  31. {
  32. ViewManager.GoBackFrom(typeof(StudioFabricView).FullName);
  33. }
  34. }
  35. }