StudioMetalView.cs 820 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using FairyGUI;
  2. using UI.Studio;
  3. namespace GFGGame
  4. {
  5. public class StudioMetalView : StudioBaseView
  6. {
  7. public override void Dispose()
  8. {
  9. base.Dispose();
  10. }
  11. protected override void OnInit()
  12. {
  13. base.OnInit();
  14. _ui.m_btnBack.onClick.Add(OnClickBtnBack);
  15. }
  16. protected override void OnShown()
  17. {
  18. base.OnShown();
  19. _ui.m_c1.selectedIndex = 0;
  20. this.studioCfgs = StudioDataManager.Instance.GetStudioCfgListByViewName(typeof(StudioMetalView).FullName);
  21. }
  22. protected override void OnHide()
  23. {
  24. base.OnHide();
  25. }
  26. private void OnClickBtnBack()
  27. {
  28. ViewManager.GoBackFrom(typeof(StudioMetalView).FullName);
  29. }
  30. }
  31. }