StudioFabricView.cs 999 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. base.OnShown();
  21. _ui.m_c1.selectedIndex = 0;
  22. this.studioCfg = StudioDataManager.Instance.GetStudioCfgListByViewName(typeof(StudioFabricView).FullName)[0];
  23. this.storyLevelCfgs = new List<StoryLevelCfg>();
  24. _ui.m_list.numItems = this.storyLevelCfgs.Count;
  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. }