UI_LeagueUI.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.League
  4. {
  5. public partial class UI_LeagueUI
  6. {
  7. public GComponent target;
  8. public GLoader m_loaBg;
  9. public GButton m_btnBack;
  10. public GButton m_btnRule;
  11. public UI_Button3 m_btnMember;
  12. public UI_Button3 m_btnConstruct;
  13. public GTextField m_txtLowKeep;
  14. public GTextField m_txtUnionName;
  15. public UI_ComLeagueHead m_comLeagueHead;
  16. public GComponent m_comHead;
  17. public GButton m_btnChangeNotice;
  18. public GTextField m_txtLeaderName;
  19. public GTextField m_txtNotice;
  20. public UI_ButtonModle6 m_btnPray;
  21. public UI_ButtonModle2 m_btnSkill;
  22. public UI_ButtonModle3 m_btnGift;
  23. public UI_ButtonModle4 m_btnAnswer;
  24. public UI_ButtonModle5 m_btnParty;
  25. public UI_ButtonModle7 m_btnShop;
  26. public const string URL = "ui://tw70qm9du2u32";
  27. public const string PACKAGE_NAME = "League";
  28. public const string RES_NAME = "LeagueUI";
  29. private static UI_LeagueUI _proxy;
  30. public static UI_LeagueUI Create(GObject gObject = null)
  31. {
  32. var ui = new UI_LeagueUI();
  33. if(gObject == null)
  34. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  35. else
  36. ui.target = (GComponent)gObject;
  37. ui.Init(ui.target);
  38. return ui;
  39. }
  40. public static UI_LeagueUI Proxy(GObject gObject = null)
  41. {
  42. if(_proxy == null)
  43. {
  44. _proxy = new UI_LeagueUI();
  45. }
  46. var ui = _proxy;
  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 void ProxyEnd()
  55. {
  56. if (_proxy != null)
  57. {
  58. _proxy.Dispose();
  59. }
  60. }
  61. public static void ClearProxy()
  62. {
  63. ProxyEnd();
  64. _proxy = null;
  65. }
  66. private void Init(GComponent comp)
  67. {
  68. m_loaBg = (GLoader)comp.GetChild("loaBg");
  69. m_btnBack = (GButton)comp.GetChild("btnBack");
  70. m_btnRule = (GButton)comp.GetChild("btnRule");
  71. m_btnMember = (UI_Button3)UI_Button3.Create(comp.GetChild("btnMember"));
  72. m_btnConstruct = (UI_Button3)UI_Button3.Create(comp.GetChild("btnConstruct"));
  73. m_txtLowKeep = (GTextField)comp.GetChild("txtLowKeep");
  74. m_txtUnionName = (GTextField)comp.GetChild("txtUnionName");
  75. m_comLeagueHead = (UI_ComLeagueHead)UI_ComLeagueHead.Create(comp.GetChild("comLeagueHead"));
  76. m_comHead = (GComponent)comp.GetChild("comHead");
  77. m_btnChangeNotice = (GButton)comp.GetChild("btnChangeNotice");
  78. m_txtLeaderName = (GTextField)comp.GetChild("txtLeaderName");
  79. m_txtNotice = (GTextField)comp.GetChild("txtNotice");
  80. m_btnPray = (UI_ButtonModle6)UI_ButtonModle6.Create(comp.GetChild("btnPray"));
  81. m_btnSkill = (UI_ButtonModle2)UI_ButtonModle2.Create(comp.GetChild("btnSkill"));
  82. m_btnGift = (UI_ButtonModle3)UI_ButtonModle3.Create(comp.GetChild("btnGift"));
  83. m_btnAnswer = (UI_ButtonModle4)UI_ButtonModle4.Create(comp.GetChild("btnAnswer"));
  84. m_btnParty = (UI_ButtonModle5)UI_ButtonModle5.Create(comp.GetChild("btnParty"));
  85. m_btnShop = (UI_ButtonModle7)UI_ButtonModle7.Create(comp.GetChild("btnShop"));
  86. }
  87. public void Dispose(bool disposeTarget = false)
  88. {
  89. m_loaBg = null;
  90. m_btnBack = null;
  91. m_btnRule = null;
  92. m_btnMember.Dispose();
  93. m_btnMember = null;
  94. m_btnConstruct.Dispose();
  95. m_btnConstruct = null;
  96. m_txtLowKeep = null;
  97. m_txtUnionName = null;
  98. m_comLeagueHead.Dispose();
  99. m_comLeagueHead = null;
  100. m_comHead = null;
  101. m_btnChangeNotice = null;
  102. m_txtLeaderName = null;
  103. m_txtNotice = null;
  104. m_btnPray.Dispose();
  105. m_btnPray = null;
  106. m_btnSkill.Dispose();
  107. m_btnSkill = null;
  108. m_btnGift.Dispose();
  109. m_btnGift = null;
  110. m_btnAnswer.Dispose();
  111. m_btnAnswer = null;
  112. m_btnParty.Dispose();
  113. m_btnParty = null;
  114. m_btnShop.Dispose();
  115. m_btnShop = null;
  116. if(disposeTarget && target != null)
  117. {
  118. target.RemoveFromParent();
  119. target.Dispose();
  120. }
  121. target = null;
  122. }
  123. }
  124. }