StudioFabricView.cs 841 B

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