UI_LeagueConstructUI.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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_LeagueConstructUI
  6. {
  7. public GComponent target;
  8. public GLoader m_loaIcon;
  9. public GComponent m_comLv;
  10. public GTextField m_txtName;
  11. public UI_ComConstruct m_comHall0;
  12. public UI_ComConstruct m_comHall1;
  13. public GLoader m_loaIcon1;
  14. public GComponent m_comLv1;
  15. public GTextField m_txtName1;
  16. public UI_ComConstruct m_comHotel0;
  17. public UI_ComConstruct m_comHotel1;
  18. public UI_ComConstruct m_comHotel2;
  19. public UI_ComConstruct m_comHotel3;
  20. public GLoader m_loaIcon2;
  21. public GComponent m_comLv2;
  22. public GTextField m_txtName2;
  23. public GTextField m_txtDesc;
  24. public GTextField m_txtCurValue;
  25. public GTextField m_txtNeatAdd;
  26. public const string URL = "ui://tw70qm9du2u39";
  27. public const string PACKAGE_NAME = "League";
  28. public const string RES_NAME = "LeagueConstructUI";
  29. private static UI_LeagueConstructUI _proxy;
  30. public static UI_LeagueConstructUI Create(GObject gObject = null)
  31. {
  32. var ui = new UI_LeagueConstructUI();
  33. if(gObject == null)
  34. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  35. else
  36. ui.target = (GComponent)gObject;
  37. ui.Init(ui.target);
  38. return ui;
  39. }
  40. public static UI_LeagueConstructUI Proxy(GObject gObject = null)
  41. {
  42. if(_proxy == null)
  43. {
  44. _proxy = new UI_LeagueConstructUI();
  45. }
  46. var ui = _proxy;
  47. if(gObject == null)
  48. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  49. else
  50. ui.target = (GComponent)gObject;
  51. ui.Init(ui.target);
  52. return ui;
  53. }
  54. public static void ProxyEnd()
  55. {
  56. if (_proxy != null)
  57. {
  58. _proxy.Dispose();
  59. }
  60. }
  61. public static void ClearProxy()
  62. {
  63. ProxyEnd();
  64. _proxy = null;
  65. }
  66. private void Init(GComponent comp)
  67. {
  68. m_loaIcon = (GLoader)comp.GetChild("loaIcon");
  69. m_comLv = (GComponent)comp.GetChild("comLv");
  70. m_txtName = (GTextField)comp.GetChild("txtName");
  71. m_comHall0 = (UI_ComConstruct)UI_ComConstruct.Create(comp.GetChild("comHall0"));
  72. m_comHall1 = (UI_ComConstruct)UI_ComConstruct.Create(comp.GetChild("comHall1"));
  73. m_loaIcon1 = (GLoader)comp.GetChild("loaIcon1");
  74. m_comLv1 = (GComponent)comp.GetChild("comLv1");
  75. m_txtName1 = (GTextField)comp.GetChild("txtName1");
  76. m_comHotel0 = (UI_ComConstruct)UI_ComConstruct.Create(comp.GetChild("comHotel0"));
  77. m_comHotel1 = (UI_ComConstruct)UI_ComConstruct.Create(comp.GetChild("comHotel1"));
  78. m_comHotel2 = (UI_ComConstruct)UI_ComConstruct.Create(comp.GetChild("comHotel2"));
  79. m_comHotel3 = (UI_ComConstruct)UI_ComConstruct.Create(comp.GetChild("comHotel3"));
  80. m_loaIcon2 = (GLoader)comp.GetChild("loaIcon2");
  81. m_comLv2 = (GComponent)comp.GetChild("comLv2");
  82. m_txtName2 = (GTextField)comp.GetChild("txtName2");
  83. m_txtDesc = (GTextField)comp.GetChild("txtDesc");
  84. m_txtCurValue = (GTextField)comp.GetChild("txtCurValue");
  85. m_txtNeatAdd = (GTextField)comp.GetChild("txtNeatAdd");
  86. }
  87. public void Dispose(bool disposeTarget = false)
  88. {
  89. m_loaIcon = null;
  90. m_comLv = null;
  91. m_txtName = null;
  92. m_comHall0.Dispose();
  93. m_comHall0 = null;
  94. m_comHall1.Dispose();
  95. m_comHall1 = null;
  96. m_loaIcon1 = null;
  97. m_comLv1 = null;
  98. m_txtName1 = null;
  99. m_comHotel0.Dispose();
  100. m_comHotel0 = null;
  101. m_comHotel1.Dispose();
  102. m_comHotel1 = null;
  103. m_comHotel2.Dispose();
  104. m_comHotel2 = null;
  105. m_comHotel3.Dispose();
  106. m_comHotel3 = null;
  107. m_loaIcon2 = null;
  108. m_comLv2 = null;
  109. m_txtName2 = null;
  110. m_txtDesc = null;
  111. m_txtCurValue = null;
  112. m_txtNeatAdd = null;
  113. if(disposeTarget && target != null)
  114. {
  115. target.RemoveFromParent();
  116. target.Dispose();
  117. }
  118. target = null;
  119. }
  120. }
  121. }