UI_LeagueUI.cs 3.8 KB

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