UI_MainUI.cs 5.1 KB

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