UI_LeagueUI.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 const string URL = "ui://tw70qm9du2u32";
  25. public const string PACKAGE_NAME = "League";
  26. public const string RES_NAME = "LeagueUI";
  27. private static UI_LeagueUI _proxy;
  28. public static UI_LeagueUI Create(GObject gObject = null)
  29. {
  30. var ui = new UI_LeagueUI();
  31. if(gObject == null)
  32. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  33. else
  34. ui.target = (GComponent)gObject;
  35. ui.Init(ui.target);
  36. return ui;
  37. }
  38. public static UI_LeagueUI Proxy(GObject gObject = null)
  39. {
  40. if(_proxy == null)
  41. {
  42. _proxy = new UI_LeagueUI();
  43. }
  44. var ui = _proxy;
  45. if(gObject == null)
  46. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  47. else
  48. ui.target = (GComponent)gObject;
  49. ui.Init(ui.target);
  50. return ui;
  51. }
  52. public static void ProxyEnd()
  53. {
  54. if (_proxy != null)
  55. {
  56. _proxy.Dispose();
  57. }
  58. }
  59. public static void ClearProxy()
  60. {
  61. ProxyEnd();
  62. _proxy = null;
  63. }
  64. private void Init(GComponent comp)
  65. {
  66. m_loaBg = (GLoader)comp.GetChild("loaBg");
  67. m_btnBack = (GButton)comp.GetChild("btnBack");
  68. m_btnRule = (GButton)comp.GetChild("btnRule");
  69. m_btnMember = (UI_Button3)UI_Button3.Create(comp.GetChild("btnMember"));
  70. m_btnConstruct = (UI_Button3)UI_Button3.Create(comp.GetChild("btnConstruct"));
  71. m_txtLowKeep = (GTextField)comp.GetChild("txtLowKeep");
  72. m_txtUnionName = (GTextField)comp.GetChild("txtUnionName");
  73. m_comLeagueHead = (UI_ComLeagueHead)UI_ComLeagueHead.Create(comp.GetChild("comLeagueHead"));
  74. m_comHead = (GComponent)comp.GetChild("comHead");
  75. m_btnChangeNotice = (GButton)comp.GetChild("btnChangeNotice");
  76. m_txtLeaderName = (GTextField)comp.GetChild("txtLeaderName");
  77. m_txtNotice = (GTextField)comp.GetChild("txtNotice");
  78. m_btnPray = (UI_ButtonModle6)UI_ButtonModle6.Create(comp.GetChild("btnPray"));
  79. m_btnSkill = (UI_ButtonModle2)UI_ButtonModle2.Create(comp.GetChild("btnSkill"));
  80. m_btnGift = (UI_ButtonModle3)UI_ButtonModle3.Create(comp.GetChild("btnGift"));
  81. m_btnAnswer = (UI_ButtonModle4)UI_ButtonModle4.Create(comp.GetChild("btnAnswer"));
  82. }
  83. public void Dispose(bool disposeTarget = false)
  84. {
  85. m_loaBg = null;
  86. m_btnBack = null;
  87. m_btnRule = null;
  88. m_btnMember.Dispose();
  89. m_btnMember = null;
  90. m_btnConstruct.Dispose();
  91. m_btnConstruct = null;
  92. m_txtLowKeep = null;
  93. m_txtUnionName = null;
  94. m_comLeagueHead.Dispose();
  95. m_comLeagueHead = null;
  96. m_comHead = null;
  97. m_btnChangeNotice = null;
  98. m_txtLeaderName = null;
  99. m_txtNotice = null;
  100. m_btnPray.Dispose();
  101. m_btnPray = null;
  102. m_btnSkill.Dispose();
  103. m_btnSkill = null;
  104. m_btnGift.Dispose();
  105. m_btnGift = null;
  106. m_btnAnswer.Dispose();
  107. m_btnAnswer = null;
  108. if(disposeTarget && target != null)
  109. {
  110. target.RemoveFromParent();
  111. target.Dispose();
  112. }
  113. target = null;
  114. }
  115. }
  116. }