UI_MainUI.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Main
  4. {
  5. public partial class UI_MainUI
  6. {
  7. public GComponent target;
  8. public UI_ComponentHeadBar m_headBar;
  9. public UI_Button2 m_btnDailyLogin;
  10. public UI_ButtonModle1 m_btnMain;
  11. public UI_ButtonModle1 m_btnHuanZhuang;
  12. public UI_ButtonModle1 m_btnXiuFang;
  13. public UI_ButtonModle1 m_btnCiPai;
  14. public UI_ButtonModle1 m_btnZhaiXing;
  15. public GGroup m_grpLeft;
  16. public UI_ButtonModle1 m_btnStudio;
  17. public UI_ButtonModle1 m_btnField;
  18. public UI_ButtonModle1 m_btnPoem;
  19. public UI_ButtonModle1 m_btnTravel;
  20. public GGroup m_grpRight;
  21. public GGroup m_grpMove;
  22. public GComponent m_valueBar;
  23. public GList m_list;
  24. public UI_ButtonChange m_btnChange;
  25. public GGroup m_grpList;
  26. public GLoader m_loaGuidestudio;
  27. public Transition m_t1;
  28. public Transition m_t2;
  29. public const string URL = "ui://mfvz4q8kq08x0";
  30. public const string PACKAGE_NAME = "Main";
  31. public const string RES_NAME = "MainUI";
  32. private static UI_MainUI _proxy;
  33. public static UI_MainUI Create(GObject gObject = null)
  34. {
  35. var ui = new UI_MainUI();
  36. if(gObject == null)
  37. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  38. else
  39. ui.target = (GComponent)gObject;
  40. ui.Init(ui.target);
  41. return ui;
  42. }
  43. public static UI_MainUI Proxy(GObject gObject = null)
  44. {
  45. if(_proxy == null)
  46. {
  47. _proxy = new UI_MainUI();
  48. }
  49. var ui = _proxy;
  50. if(gObject == null)
  51. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  52. else
  53. ui.target = (GComponent)gObject;
  54. ui.Init(ui.target);
  55. return ui;
  56. }
  57. public static void ProxyEnd()
  58. {
  59. if (_proxy != null)
  60. {
  61. _proxy.Dispose();
  62. }
  63. }
  64. public static void ClearProxy()
  65. {
  66. ProxyEnd();
  67. _proxy = null;
  68. }
  69. private void Init(GComponent comp)
  70. {
  71. m_headBar = (UI_ComponentHeadBar)UI_ComponentHeadBar.Create(comp.GetChild("headBar"));
  72. m_btnDailyLogin = (UI_Button2)UI_Button2.Create(comp.GetChild("btnDailyLogin"));
  73. m_btnMain = (UI_ButtonModle1)UI_ButtonModle1.Create(comp.GetChild("btnMain"));
  74. m_btnHuanZhuang = (UI_ButtonModle1)UI_ButtonModle1.Create(comp.GetChild("btnHuanZhuang"));
  75. m_btnXiuFang = (UI_ButtonModle1)UI_ButtonModle1.Create(comp.GetChild("btnXiuFang"));
  76. m_btnCiPai = (UI_ButtonModle1)UI_ButtonModle1.Create(comp.GetChild("btnCiPai"));
  77. m_btnZhaiXing = (UI_ButtonModle1)UI_ButtonModle1.Create(comp.GetChild("btnZhaiXing"));
  78. m_grpLeft = (GGroup)comp.GetChild("grpLeft");
  79. m_btnStudio = (UI_ButtonModle1)UI_ButtonModle1.Create(comp.GetChild("btnStudio"));
  80. m_btnField = (UI_ButtonModle1)UI_ButtonModle1.Create(comp.GetChild("btnField"));
  81. m_btnPoem = (UI_ButtonModle1)UI_ButtonModle1.Create(comp.GetChild("btnPoem"));
  82. m_btnTravel = (UI_ButtonModle1)UI_ButtonModle1.Create(comp.GetChild("btnTravel"));
  83. m_grpRight = (GGroup)comp.GetChild("grpRight");
  84. m_grpMove = (GGroup)comp.GetChild("grpMove");
  85. m_valueBar = (GComponent)comp.GetChild("valueBar");
  86. m_list = (GList)comp.GetChild("list");
  87. m_btnChange = (UI_ButtonChange)UI_ButtonChange.Create(comp.GetChild("btnChange"));
  88. m_grpList = (GGroup)comp.GetChild("grpList");
  89. m_loaGuidestudio = (GLoader)comp.GetChild("loaGuidestudio");
  90. m_t1 = comp.GetTransition("t1");
  91. m_t2 = comp.GetTransition("t2");
  92. }
  93. public void Dispose(bool disposeTarget = false)
  94. {
  95. m_headBar.Dispose();
  96. m_headBar = null;
  97. m_btnDailyLogin.Dispose();
  98. m_btnDailyLogin = null;
  99. m_btnMain.Dispose();
  100. m_btnMain = null;
  101. m_btnHuanZhuang.Dispose();
  102. m_btnHuanZhuang = null;
  103. m_btnXiuFang.Dispose();
  104. m_btnXiuFang = null;
  105. m_btnCiPai.Dispose();
  106. m_btnCiPai = null;
  107. m_btnZhaiXing.Dispose();
  108. m_btnZhaiXing = null;
  109. m_grpLeft = null;
  110. m_btnStudio.Dispose();
  111. m_btnStudio = null;
  112. m_btnField.Dispose();
  113. m_btnField = null;
  114. m_btnPoem.Dispose();
  115. m_btnPoem = null;
  116. m_btnTravel.Dispose();
  117. m_btnTravel = null;
  118. m_grpRight = null;
  119. m_grpMove = null;
  120. m_valueBar = null;
  121. m_list = null;
  122. m_btnChange.Dispose();
  123. m_btnChange = null;
  124. m_grpList = null;
  125. m_loaGuidestudio = null;
  126. m_t1 = null;
  127. m_t2 = null;
  128. if(disposeTarget && target != null)
  129. {
  130. target.RemoveFromParent();
  131. target.Dispose();
  132. }
  133. target = null;
  134. }
  135. }
  136. }