UI_LeagueTeaPartyUI.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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 const string URL = "ui://tw70qm9dchwotpk";
  22. public const string PACKAGE_NAME = "League";
  23. public const string RES_NAME = "LeagueTeaPartyUI";
  24. private static UI_LeagueTeaPartyUI _proxy;
  25. public static UI_LeagueTeaPartyUI Create(GObject gObject = null)
  26. {
  27. var ui = new UI_LeagueTeaPartyUI();
  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_LeagueTeaPartyUI Proxy(GObject gObject = null)
  36. {
  37. if(_proxy == null)
  38. {
  39. _proxy = new UI_LeagueTeaPartyUI();
  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_btnChallenge = (GButton)comp.GetChild("btnChallenge");
  66. m_btnChat = (GButton)comp.GetChild("btnChat");
  67. m_btnReward = (GButton)comp.GetChild("btnReward");
  68. m_txtTeaName = (GTextField)comp.GetChild("txtTeaName");
  69. m_teaPartyItem1 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem1"));
  70. m_teaPartyItem2 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem2"));
  71. m_teaPartyItem3 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem3"));
  72. m_teaPartyItem4 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem4"));
  73. m_teaPartyItem5 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem5"));
  74. m_teaPartyItem6 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem6"));
  75. m_teaPartyItemTips = (UI_TeaPartyItemTips)UI_TeaPartyItemTips.Create(comp.GetChild("teaPartyItemTips"));
  76. }
  77. public void Dispose(bool disposeTarget = false)
  78. {
  79. m_loaBg = null;
  80. m_btnBack = null;
  81. m_btnChallenge = null;
  82. m_btnChat = null;
  83. m_btnReward = null;
  84. m_txtTeaName = null;
  85. m_teaPartyItem1.Dispose();
  86. m_teaPartyItem1 = null;
  87. m_teaPartyItem2.Dispose();
  88. m_teaPartyItem2 = null;
  89. m_teaPartyItem3.Dispose();
  90. m_teaPartyItem3 = null;
  91. m_teaPartyItem4.Dispose();
  92. m_teaPartyItem4 = null;
  93. m_teaPartyItem5.Dispose();
  94. m_teaPartyItem5 = null;
  95. m_teaPartyItem6.Dispose();
  96. m_teaPartyItem6 = null;
  97. m_teaPartyItemTips.Dispose();
  98. m_teaPartyItemTips = null;
  99. if(disposeTarget && target != null)
  100. {
  101. target.RemoveFromParent();
  102. target.Dispose();
  103. }
  104. target = null;
  105. }
  106. }
  107. }