UI_ArenaUI.cs 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Arena
  4. {
  5. public partial class UI_ArenaUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public Controller m_c2;
  10. public GButton m_btnBack;
  11. public GComponent m_valueBar;
  12. public UI_ComTheme m_comTheme;
  13. public GTextField m_txtTime;
  14. public GButton m_btnRule;
  15. public GGroup m_gtpTop;
  16. public GButton m_btnReSelect;
  17. public GButton m_btnFight;
  18. public GList m_listTarget;
  19. public GGraph m_grhCloseComFightScore;
  20. public GLoader m_loaDanIcon;
  21. public GTextField m_txtName;
  22. public GTextField m_txtDanTitle;
  23. public GTextField m_txtRank;
  24. public GTextField m_txtFightScore;
  25. public GButton m_btnFightScoreRule;
  26. public UI_ComFightScore m_comFightScore;
  27. public GTextField m_txtMoneyCount;
  28. public GButton m_btnAddFightCount;
  29. public GTextField m_txtFightCount;
  30. public GTextField m_txtRefreshCount;
  31. public GButton m_btnRefresh;
  32. public UI_ComCostCurrency m_comCostCurrent;
  33. public GButton m_btnQuickFight;
  34. public GButton m_btnShop;
  35. public GButton m_btnDress;
  36. public GButton m_btnReward;
  37. public GButton m_btnRank;
  38. public GButton m_btnRecord;
  39. public GGroup m_grpBottom;
  40. public const string URL = "ui://4lc5fhlbpsph0";
  41. public const string PACKAGE_NAME = "Arena";
  42. public const string RES_NAME = "ArenaUI";
  43. private static UI_ArenaUI _proxy;
  44. public static UI_ArenaUI Create(GObject gObject = null)
  45. {
  46. var ui = new UI_ArenaUI();
  47. if(gObject == null)
  48. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  49. else
  50. ui.target = (GComponent)gObject;
  51. ui.Init(ui.target);
  52. return ui;
  53. }
  54. public static UI_ArenaUI Proxy(GObject gObject = null)
  55. {
  56. if(_proxy == null)
  57. {
  58. _proxy = new UI_ArenaUI();
  59. }
  60. var ui = _proxy;
  61. if(gObject == null)
  62. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  63. else
  64. ui.target = (GComponent)gObject;
  65. ui.Init(ui.target);
  66. return ui;
  67. }
  68. public static void ProxyEnd()
  69. {
  70. if (_proxy != null)
  71. {
  72. _proxy.Dispose();
  73. }
  74. }
  75. public static void ClearProxy()
  76. {
  77. ProxyEnd();
  78. _proxy = null;
  79. }
  80. private void Init(GComponent comp)
  81. {
  82. m_c1 = comp.GetController("c1");
  83. m_c2 = comp.GetController("c2");
  84. m_btnBack = (GButton)comp.GetChild("btnBack");
  85. m_valueBar = (GComponent)comp.GetChild("valueBar");
  86. m_comTheme = (UI_ComTheme)UI_ComTheme.Create(comp.GetChild("comTheme"));
  87. m_txtTime = (GTextField)comp.GetChild("txtTime");
  88. m_btnRule = (GButton)comp.GetChild("btnRule");
  89. m_gtpTop = (GGroup)comp.GetChild("gtpTop");
  90. m_btnReSelect = (GButton)comp.GetChild("btnReSelect");
  91. m_btnFight = (GButton)comp.GetChild("btnFight");
  92. m_listTarget = (GList)comp.GetChild("listTarget");
  93. m_grhCloseComFightScore = (GGraph)comp.GetChild("grhCloseComFightScore");
  94. m_loaDanIcon = (GLoader)comp.GetChild("loaDanIcon");
  95. m_txtName = (GTextField)comp.GetChild("txtName");
  96. m_txtDanTitle = (GTextField)comp.GetChild("txtDanTitle");
  97. m_txtRank = (GTextField)comp.GetChild("txtRank");
  98. m_txtFightScore = (GTextField)comp.GetChild("txtFightScore");
  99. m_btnFightScoreRule = (GButton)comp.GetChild("btnFightScoreRule");
  100. m_comFightScore = (UI_ComFightScore)UI_ComFightScore.Create(comp.GetChild("comFightScore"));
  101. m_txtMoneyCount = (GTextField)comp.GetChild("txtMoneyCount");
  102. m_btnAddFightCount = (GButton)comp.GetChild("btnAddFightCount");
  103. m_txtFightCount = (GTextField)comp.GetChild("txtFightCount");
  104. m_txtRefreshCount = (GTextField)comp.GetChild("txtRefreshCount");
  105. m_btnRefresh = (GButton)comp.GetChild("btnRefresh");
  106. m_comCostCurrent = (UI_ComCostCurrency)UI_ComCostCurrency.Create(comp.GetChild("comCostCurrent"));
  107. m_btnQuickFight = (GButton)comp.GetChild("btnQuickFight");
  108. m_btnShop = (GButton)comp.GetChild("btnShop");
  109. m_btnDress = (GButton)comp.GetChild("btnDress");
  110. m_btnReward = (GButton)comp.GetChild("btnReward");
  111. m_btnRank = (GButton)comp.GetChild("btnRank");
  112. m_btnRecord = (GButton)comp.GetChild("btnRecord");
  113. m_grpBottom = (GGroup)comp.GetChild("grpBottom");
  114. }
  115. public void Dispose(bool disposeTarget = false)
  116. {
  117. m_c1 = null;
  118. m_c2 = null;
  119. m_btnBack = null;
  120. m_valueBar = null;
  121. m_comTheme.Dispose();
  122. m_comTheme = null;
  123. m_txtTime = null;
  124. m_btnRule = null;
  125. m_gtpTop = null;
  126. m_btnReSelect = null;
  127. m_btnFight = null;
  128. m_listTarget = null;
  129. m_grhCloseComFightScore = null;
  130. m_loaDanIcon = null;
  131. m_txtName = null;
  132. m_txtDanTitle = null;
  133. m_txtRank = null;
  134. m_txtFightScore = null;
  135. m_btnFightScoreRule = null;
  136. m_comFightScore.Dispose();
  137. m_comFightScore = null;
  138. m_txtMoneyCount = null;
  139. m_btnAddFightCount = null;
  140. m_txtFightCount = null;
  141. m_txtRefreshCount = null;
  142. m_btnRefresh = null;
  143. m_comCostCurrent.Dispose();
  144. m_comCostCurrent = null;
  145. m_btnQuickFight = null;
  146. m_btnShop = null;
  147. m_btnDress = null;
  148. m_btnReward = null;
  149. m_btnRank = null;
  150. m_btnRecord = null;
  151. m_grpBottom = null;
  152. if(disposeTarget && target != null)
  153. {
  154. target.RemoveFromParent();
  155. target.Dispose();
  156. }
  157. target = null;
  158. }
  159. }
  160. }