UI_ItemExchangeUI.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 GComponent m_comBg;
  9. public GTextField m_txtName;
  10. public GTextField m_txtOwned;
  11. public GLoader m_loaRarity;
  12. public GLoader m_loaIcon;
  13. public GTextField m_txtDesc;
  14. public GTextField m_txtExchangeCount;
  15. public GList m_listItem;
  16. public GTextField m_txtShow;
  17. public UI_Button2 m_btnMinus;
  18. public UI_Button16 m_btnAdd;
  19. public UI_Button3 m_btnMax;
  20. public GTextField m_txtCostCount;
  21. public GTextField m_txtTips;
  22. public UI_ComCostCurrency m_comCost;
  23. public GTextField m_txtRmbCost;
  24. public GButton m_btnCancle;
  25. public GButton m_btnConfirm;
  26. public const string URL = "ui://eg2y0ldps5s9tik";
  27. public const string PACKAGE_NAME = "CommonGame";
  28. public const string RES_NAME = "ItemExchangeUI";
  29. private static UI_ItemExchangeUI _proxy;
  30. public static UI_ItemExchangeUI Create(GObject gObject = null)
  31. {
  32. var ui = new UI_ItemExchangeUI();
  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_ItemExchangeUI Proxy(GObject gObject = null)
  41. {
  42. if(_proxy == null)
  43. {
  44. _proxy = new UI_ItemExchangeUI();
  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_comBg = (GComponent)comp.GetChild("comBg");
  69. m_txtName = (GTextField)comp.GetChild("txtName");
  70. m_txtOwned = (GTextField)comp.GetChild("txtOwned");
  71. m_loaRarity = (GLoader)comp.GetChild("loaRarity");
  72. m_loaIcon = (GLoader)comp.GetChild("loaIcon");
  73. m_txtDesc = (GTextField)comp.GetChild("txtDesc");
  74. m_txtExchangeCount = (GTextField)comp.GetChild("txtExchangeCount");
  75. m_listItem = (GList)comp.GetChild("listItem");
  76. m_txtShow = (GTextField)comp.GetChild("txtShow");
  77. m_btnMinus = (UI_Button2)UI_Button2.Create(comp.GetChild("btnMinus"));
  78. m_btnAdd = (UI_Button16)UI_Button16.Create(comp.GetChild("btnAdd"));
  79. m_btnMax = (UI_Button3)UI_Button3.Create(comp.GetChild("btnMax"));
  80. m_txtCostCount = (GTextField)comp.GetChild("txtCostCount");
  81. m_txtTips = (GTextField)comp.GetChild("txtTips");
  82. m_comCost = (UI_ComCostCurrency)UI_ComCostCurrency.Create(comp.GetChild("comCost"));
  83. m_txtRmbCost = (GTextField)comp.GetChild("txtRmbCost");
  84. m_btnCancle = (GButton)comp.GetChild("btnCancle");
  85. m_btnConfirm = (GButton)comp.GetChild("btnConfirm");
  86. }
  87. public void Dispose(bool disposeTarget = false)
  88. {
  89. m_comBg = null;
  90. m_txtName = null;
  91. m_txtOwned = null;
  92. m_loaRarity = null;
  93. m_loaIcon = null;
  94. m_txtDesc = null;
  95. m_txtExchangeCount = null;
  96. m_listItem = null;
  97. m_txtShow = null;
  98. m_btnMinus.Dispose();
  99. m_btnMinus = null;
  100. m_btnAdd.Dispose();
  101. m_btnAdd = null;
  102. m_btnMax.Dispose();
  103. m_btnMax = null;
  104. m_txtCostCount = null;
  105. m_txtTips = null;
  106. m_comCost.Dispose();
  107. m_comCost = null;
  108. m_txtRmbCost = null;
  109. m_btnCancle = null;
  110. m_btnConfirm = null;
  111. if(disposeTarget && target != null)
  112. {
  113. target.RemoveFromParent();
  114. target.Dispose();
  115. }
  116. target = null;
  117. }
  118. }
  119. }