UI_ClothingDecomposeUI.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.ClothingDecompose
  4. {
  5. public partial class UI_ClothingDecomposeUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public Controller m_TouchSelect;
  10. public Controller m_clothesType;
  11. public GLoader m_bg;
  12. public UI_Button6 m_btnClothing;
  13. public UI_Button6 m_btnSkillBook;
  14. public GComponent m_valueBar;
  15. public GButton m_btnBack;
  16. public GButton m_btnRule;
  17. public GList m_listTab;
  18. public GList m_list;
  19. public GTextField m_txtNone;
  20. public GTextField m_txtShow;
  21. public GList m_listReward;
  22. public GButton m_btnDecompose;
  23. public GTextField m_txtConsume;
  24. public GTextField m_txtTips;
  25. public GButton m_btnSelect;
  26. public GTextField m_txtGetRewardTips;
  27. public const string URL = "ui://h9mv1l71wlc20";
  28. public const string PACKAGE_NAME = "ClothingDecompose";
  29. public const string RES_NAME = "ClothingDecomposeUI";
  30. private static UI_ClothingDecomposeUI _proxy;
  31. public static UI_ClothingDecomposeUI Create(GObject gObject = null)
  32. {
  33. var ui = new UI_ClothingDecomposeUI();
  34. if(gObject == null)
  35. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  36. else
  37. ui.target = (GComponent)gObject;
  38. ui.Init(ui.target);
  39. return ui;
  40. }
  41. public static UI_ClothingDecomposeUI Proxy(GObject gObject = null)
  42. {
  43. if(_proxy == null)
  44. {
  45. _proxy = new UI_ClothingDecomposeUI();
  46. }
  47. var ui = _proxy;
  48. if(gObject == null)
  49. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  50. else
  51. ui.target = (GComponent)gObject;
  52. ui.Init(ui.target);
  53. return ui;
  54. }
  55. public static void ProxyEnd()
  56. {
  57. if (_proxy != null)
  58. {
  59. _proxy.Dispose();
  60. }
  61. }
  62. public static void ClearProxy()
  63. {
  64. ProxyEnd();
  65. _proxy = null;
  66. }
  67. private void Init(GComponent comp)
  68. {
  69. m_c1 = comp.GetController("c1");
  70. m_TouchSelect = comp.GetController("TouchSelect");
  71. m_clothesType = comp.GetController("clothesType");
  72. m_bg = (GLoader)comp.GetChild("bg");
  73. m_btnClothing = (UI_Button6)UI_Button6.Create(comp.GetChild("btnClothing"));
  74. m_btnSkillBook = (UI_Button6)UI_Button6.Create(comp.GetChild("btnSkillBook"));
  75. m_valueBar = (GComponent)comp.GetChild("valueBar");
  76. m_btnBack = (GButton)comp.GetChild("btnBack");
  77. m_btnRule = (GButton)comp.GetChild("btnRule");
  78. m_listTab = (GList)comp.GetChild("listTab");
  79. m_list = (GList)comp.GetChild("list");
  80. m_txtNone = (GTextField)comp.GetChild("txtNone");
  81. m_txtShow = (GTextField)comp.GetChild("txtShow");
  82. m_listReward = (GList)comp.GetChild("listReward");
  83. m_btnDecompose = (GButton)comp.GetChild("btnDecompose");
  84. m_txtConsume = (GTextField)comp.GetChild("txtConsume");
  85. m_txtTips = (GTextField)comp.GetChild("txtTips");
  86. m_btnSelect = (GButton)comp.GetChild("btnSelect");
  87. m_txtGetRewardTips = (GTextField)comp.GetChild("txtGetRewardTips");
  88. }
  89. public void Dispose(bool disposeTarget = false)
  90. {
  91. m_c1 = null;
  92. m_TouchSelect = null;
  93. m_clothesType = null;
  94. m_bg = null;
  95. m_btnClothing.Dispose();
  96. m_btnClothing = null;
  97. m_btnSkillBook.Dispose();
  98. m_btnSkillBook = null;
  99. m_valueBar = null;
  100. m_btnBack = null;
  101. m_btnRule = null;
  102. m_listTab = null;
  103. m_list = null;
  104. m_txtNone = null;
  105. m_txtShow = null;
  106. m_listReward = null;
  107. m_btnDecompose = null;
  108. m_txtConsume = null;
  109. m_txtTips = null;
  110. m_btnSelect = null;
  111. m_txtGetRewardTips = null;
  112. if(disposeTarget && target != null)
  113. {
  114. target.RemoveFromParent();
  115. target.Dispose();
  116. }
  117. target = null;
  118. }
  119. }
  120. }