UI_ItemExchangeUI.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.CommonGame
  4. {
  5. public partial class UI_ItemExchangeUI
  6. {
  7. public GComponent target;
  8. public UI_ComBg000 m_comBg;
  9. public GTextField m_txtOwned;
  10. public GTextField m_txtDesc;
  11. public GLoader m_loaRarity;
  12. public GLoader m_loaIcon;
  13. public GTextField m_txtExchangeCount;
  14. public GTextField m_txtGong;
  15. public GTextField m_txtShang;
  16. public GTextField m_txtJue;
  17. public GTextField m_txtZhi;
  18. public GGroup m_grpScore;
  19. public GList m_listTag;
  20. public GList m_listItem;
  21. public GTextField m_txtShow;
  22. public UI_Button2 m_btnMinus;
  23. public UI_Button16 m_btnAdd;
  24. public UI_Button3 m_btnMax;
  25. public GTextField m_txtCostCount;
  26. public GTextField m_txtTips;
  27. public UI_ComCostCurrency m_comCost;
  28. public GTextField m_txtRmbCost;
  29. public GButton m_btnCancle;
  30. public GButton m_btnConfirm;
  31. public const string URL = "ui://eg2y0ldps5s9tik";
  32. public const string PACKAGE_NAME = "CommonGame";
  33. public const string RES_NAME = "ItemExchangeUI";
  34. private static UI_ItemExchangeUI _proxy;
  35. public static UI_ItemExchangeUI Create(GObject gObject = null)
  36. {
  37. var ui = new UI_ItemExchangeUI();
  38. if(gObject == null)
  39. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  40. else
  41. ui.target = (GComponent)gObject;
  42. ui.Init(ui.target);
  43. return ui;
  44. }
  45. public static UI_ItemExchangeUI Proxy(GObject gObject = null)
  46. {
  47. if(_proxy == null)
  48. {
  49. _proxy = new UI_ItemExchangeUI();
  50. }
  51. var ui = _proxy;
  52. if(gObject == null)
  53. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  54. else
  55. ui.target = (GComponent)gObject;
  56. ui.Init(ui.target);
  57. return ui;
  58. }
  59. public static void ProxyEnd()
  60. {
  61. if (_proxy != null)
  62. {
  63. _proxy.Dispose();
  64. }
  65. }
  66. public static void ClearProxy()
  67. {
  68. ProxyEnd();
  69. _proxy = null;
  70. }
  71. private void Init(GComponent comp)
  72. {
  73. m_comBg = (UI_ComBg000)UI_ComBg000.Create(comp.GetChild("comBg"));
  74. m_txtOwned = (GTextField)comp.GetChild("txtOwned");
  75. m_txtDesc = (GTextField)comp.GetChild("txtDesc");
  76. m_loaRarity = (GLoader)comp.GetChild("loaRarity");
  77. m_loaIcon = (GLoader)comp.GetChild("loaIcon");
  78. m_txtExchangeCount = (GTextField)comp.GetChild("txtExchangeCount");
  79. m_txtGong = (GTextField)comp.GetChild("txtGong");
  80. m_txtShang = (GTextField)comp.GetChild("txtShang");
  81. m_txtJue = (GTextField)comp.GetChild("txtJue");
  82. m_txtZhi = (GTextField)comp.GetChild("txtZhi");
  83. m_grpScore = (GGroup)comp.GetChild("grpScore");
  84. m_listTag = (GList)comp.GetChild("listTag");
  85. m_listItem = (GList)comp.GetChild("listItem");
  86. m_txtShow = (GTextField)comp.GetChild("txtShow");
  87. m_btnMinus = (UI_Button2)UI_Button2.Create(comp.GetChild("btnMinus"));
  88. m_btnAdd = (UI_Button16)UI_Button16.Create(comp.GetChild("btnAdd"));
  89. m_btnMax = (UI_Button3)UI_Button3.Create(comp.GetChild("btnMax"));
  90. m_txtCostCount = (GTextField)comp.GetChild("txtCostCount");
  91. m_txtTips = (GTextField)comp.GetChild("txtTips");
  92. m_comCost = (UI_ComCostCurrency)UI_ComCostCurrency.Create(comp.GetChild("comCost"));
  93. m_txtRmbCost = (GTextField)comp.GetChild("txtRmbCost");
  94. m_btnCancle = (GButton)comp.GetChild("btnCancle");
  95. m_btnConfirm = (GButton)comp.GetChild("btnConfirm");
  96. }
  97. public void Dispose(bool disposeTarget = false)
  98. {
  99. m_comBg.Dispose();
  100. m_comBg = null;
  101. m_txtOwned = null;
  102. m_txtDesc = null;
  103. m_loaRarity = null;
  104. m_loaIcon = null;
  105. m_txtExchangeCount = null;
  106. m_txtGong = null;
  107. m_txtShang = null;
  108. m_txtJue = null;
  109. m_txtZhi = null;
  110. m_grpScore = null;
  111. m_listTag = null;
  112. m_listItem = null;
  113. m_txtShow = null;
  114. m_btnMinus.Dispose();
  115. m_btnMinus = null;
  116. m_btnAdd.Dispose();
  117. m_btnAdd = null;
  118. m_btnMax.Dispose();
  119. m_btnMax = null;
  120. m_txtCostCount = null;
  121. m_txtTips = null;
  122. m_comCost.Dispose();
  123. m_comCost = null;
  124. m_txtRmbCost = null;
  125. m_btnCancle = null;
  126. m_btnConfirm = null;
  127. if(disposeTarget && target != null)
  128. {
  129. target.RemoveFromParent();
  130. target.Dispose();
  131. }
  132. target = null;
  133. }
  134. }
  135. }