UI_LeagueTeaPartyUI.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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_LeagueTeaPartyUI
  6. {
  7. public GComponent target;
  8. public GLoader m_loaBg;
  9. public GButton m_btnBack;
  10. public GButton m_btnChallenge;
  11. public GButton m_btnChat;
  12. public GButton m_btnReward;
  13. public GTextField m_txtTeaName;
  14. public UI_comTeaPartyItem m_teaPartyItem1;
  15. public UI_comTeaPartyItem m_teaPartyItem2;
  16. public UI_comTeaPartyItem m_teaPartyItem3;
  17. public UI_comTeaPartyItem m_teaPartyItem4;
  18. public UI_comTeaPartyItem m_teaPartyItem5;
  19. public UI_comTeaPartyItem m_teaPartyItem6;
  20. public UI_TeaPartyItemTips m_teaPartyItemTips;
  21. public GButton m_btnRule;
  22. public const string URL = "ui://tw70qm9dchwotpk";
  23. public const string PACKAGE_NAME = "League";
  24. public const string RES_NAME = "LeagueTeaPartyUI";
  25. private static UI_LeagueTeaPartyUI _proxy;
  26. public static UI_LeagueTeaPartyUI Create(GObject gObject = null)
  27. {
  28. var ui = new UI_LeagueTeaPartyUI();
  29. if(gObject == null)
  30. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  31. else
  32. ui.target = (GComponent)gObject;
  33. ui.Init(ui.target);
  34. return ui;
  35. }
  36. public static UI_LeagueTeaPartyUI Proxy(GObject gObject = null)
  37. {
  38. if(_proxy == null)
  39. {
  40. _proxy = new UI_LeagueTeaPartyUI();
  41. }
  42. var ui = _proxy;
  43. if(gObject == null)
  44. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  45. else
  46. ui.target = (GComponent)gObject;
  47. ui.Init(ui.target);
  48. return ui;
  49. }
  50. public static void ProxyEnd()
  51. {
  52. if (_proxy != null)
  53. {
  54. _proxy.Dispose();
  55. }
  56. }
  57. public static void ClearProxy()
  58. {
  59. ProxyEnd();
  60. _proxy = null;
  61. }
  62. private void Init(GComponent comp)
  63. {
  64. m_loaBg = (GLoader)comp.GetChild("loaBg");
  65. m_btnBack = (GButton)comp.GetChild("btnBack");
  66. m_btnChallenge = (GButton)comp.GetChild("btnChallenge");
  67. m_btnChat = (GButton)comp.GetChild("btnChat");
  68. m_btnReward = (GButton)comp.GetChild("btnReward");
  69. m_txtTeaName = (GTextField)comp.GetChild("txtTeaName");
  70. m_teaPartyItem1 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem1"));
  71. m_teaPartyItem2 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem2"));
  72. m_teaPartyItem3 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem3"));
  73. m_teaPartyItem4 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem4"));
  74. m_teaPartyItem5 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem5"));
  75. m_teaPartyItem6 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem6"));
  76. m_teaPartyItemTips = (UI_TeaPartyItemTips)UI_TeaPartyItemTips.Create(comp.GetChild("teaPartyItemTips"));
  77. m_btnRule = (GButton)comp.GetChild("btnRule");
  78. }
  79. public void Dispose(bool disposeTarget = false)
  80. {
  81. m_loaBg = null;
  82. m_btnBack = null;
  83. m_btnChallenge = null;
  84. m_btnChat = null;
  85. m_btnReward = null;
  86. m_txtTeaName = null;
  87. m_teaPartyItem1.Dispose();
  88. m_teaPartyItem1 = null;
  89. m_teaPartyItem2.Dispose();
  90. m_teaPartyItem2 = null;
  91. m_teaPartyItem3.Dispose();
  92. m_teaPartyItem3 = null;
  93. m_teaPartyItem4.Dispose();
  94. m_teaPartyItem4 = null;
  95. m_teaPartyItem5.Dispose();
  96. m_teaPartyItem5 = null;
  97. m_teaPartyItem6.Dispose();
  98. m_teaPartyItem6 = null;
  99. m_teaPartyItemTips.Dispose();
  100. m_teaPartyItemTips = null;
  101. m_btnRule = null;
  102. if(disposeTarget && target != null)
  103. {
  104. target.RemoveFromParent();
  105. target.Dispose();
  106. }
  107. target = null;
  108. }
  109. }
  110. }