UI_LeagueUI.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 GButton m_btnChangeNotice;
  12. public UI_Button2 m_btnMember;
  13. public UI_Button3 m_btnConstruct;
  14. public GTextField m_txtUnionName;
  15. public UI_ComLeagueHead m_comLeagueHead;
  16. public GComponent m_comHead;
  17. public GTextField m_txtLeaderName;
  18. public GTextField m_txtNotice;
  19. public UI_ButtonModle2 m_btnPray;
  20. public const string URL = "ui://tw70qm9du2u32";
  21. public const string PACKAGE_NAME = "League";
  22. public const string RES_NAME = "LeagueUI";
  23. private static UI_LeagueUI _proxy;
  24. public static UI_LeagueUI Create(GObject gObject = null)
  25. {
  26. var ui = new UI_LeagueUI();
  27. if(gObject == null)
  28. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  29. else
  30. ui.target = (GComponent)gObject;
  31. ui.Init(ui.target);
  32. return ui;
  33. }
  34. public static UI_LeagueUI Proxy(GObject gObject = null)
  35. {
  36. if(_proxy == null)
  37. {
  38. _proxy = new UI_LeagueUI();
  39. }
  40. var ui = _proxy;
  41. if(gObject == null)
  42. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  43. else
  44. ui.target = (GComponent)gObject;
  45. ui.Init(ui.target);
  46. return ui;
  47. }
  48. public static void ProxyEnd()
  49. {
  50. if (_proxy != null)
  51. {
  52. _proxy.Dispose();
  53. }
  54. }
  55. public static void ClearProxy()
  56. {
  57. ProxyEnd();
  58. _proxy = null;
  59. }
  60. private void Init(GComponent comp)
  61. {
  62. m_loaBg = (GLoader)comp.GetChild("loaBg");
  63. m_btnback = (GButton)comp.GetChild("btnback");
  64. m_btnRule = (GButton)comp.GetChild("btnRule");
  65. m_btnChangeNotice = (GButton)comp.GetChild("btnChangeNotice");
  66. m_btnMember = (UI_Button2)UI_Button2.Create(comp.GetChild("btnMember"));
  67. m_btnConstruct = (UI_Button3)UI_Button3.Create(comp.GetChild("btnConstruct"));
  68. m_txtUnionName = (GTextField)comp.GetChild("txtUnionName");
  69. m_comLeagueHead = (UI_ComLeagueHead)UI_ComLeagueHead.Create(comp.GetChild("comLeagueHead"));
  70. m_comHead = (GComponent)comp.GetChild("comHead");
  71. m_txtLeaderName = (GTextField)comp.GetChild("txtLeaderName");
  72. m_txtNotice = (GTextField)comp.GetChild("txtNotice");
  73. m_btnPray = (UI_ButtonModle2)UI_ButtonModle2.Create(comp.GetChild("btnPray"));
  74. }
  75. public void Dispose(bool disposeTarget = false)
  76. {
  77. m_loaBg = null;
  78. m_btnback = null;
  79. m_btnRule = null;
  80. m_btnChangeNotice = null;
  81. m_btnMember.Dispose();
  82. m_btnMember = null;
  83. m_btnConstruct.Dispose();
  84. m_btnConstruct = null;
  85. m_txtUnionName = null;
  86. m_comLeagueHead.Dispose();
  87. m_comLeagueHead = null;
  88. m_comHead = null;
  89. m_txtLeaderName = null;
  90. m_txtNotice = null;
  91. m_btnPray.Dispose();
  92. m_btnPray = null;
  93. if(disposeTarget && target != null)
  94. {
  95. target.RemoveFromParent();
  96. target.Dispose();
  97. }
  98. target = null;
  99. }
  100. }
  101. }