UI_MainUI.cs 4.9 KB

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