UI_ItemExchangeUI.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 GTextField m_txtName;
  9. public GTextField m_txtOwned;
  10. public GLoader m_loaRarity;
  11. public GLoader m_loaIcon;
  12. public GTextField m_txtDesc;
  13. public GTextField m_txtExchangeCount;
  14. public GList m_listItem;
  15. public GTextField m_txtShow;
  16. public UI_Button2 m_btnMinus;
  17. public UI_Button16 m_btnAdd;
  18. public UI_Button3 m_btnMax;
  19. public GTextField m_txtCostCount;
  20. public GTextField m_txtTips;
  21. public UI_ComCostCurrency m_comCost;
  22. public GTextField m_txtRmbCost;
  23. public GButton m_btnCancle;
  24. public GButton m_btnConfirm;
  25. public const string URL = "ui://eg2y0ldps5s9tik";
  26. public const string PACKAGE_NAME = "CommonGame";
  27. public const string RES_NAME = "ItemExchangeUI";
  28. private static UI_ItemExchangeUI _proxy;
  29. public static UI_ItemExchangeUI Create(GObject gObject = null)
  30. {
  31. var ui = new UI_ItemExchangeUI();
  32. if(gObject == null)
  33. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  34. else
  35. ui.target = (GComponent)gObject;
  36. ui.Init(ui.target);
  37. return ui;
  38. }
  39. public static UI_ItemExchangeUI Proxy(GObject gObject = null)
  40. {
  41. if(_proxy == null)
  42. {
  43. _proxy = new UI_ItemExchangeUI();
  44. }
  45. var ui = _proxy;
  46. if(gObject == null)
  47. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  48. else
  49. ui.target = (GComponent)gObject;
  50. ui.Init(ui.target);
  51. return ui;
  52. }
  53. public static void ProxyEnd()
  54. {
  55. if (_proxy != null)
  56. {
  57. _proxy.Dispose();
  58. }
  59. }
  60. public static void ClearProxy()
  61. {
  62. ProxyEnd();
  63. _proxy = null;
  64. }
  65. private void Init(GComponent comp)
  66. {
  67. m_txtName = (GTextField)comp.GetChild("txtName");
  68. m_txtOwned = (GTextField)comp.GetChild("txtOwned");
  69. m_loaRarity = (GLoader)comp.GetChild("loaRarity");
  70. m_loaIcon = (GLoader)comp.GetChild("loaIcon");
  71. m_txtDesc = (GTextField)comp.GetChild("txtDesc");
  72. m_txtExchangeCount = (GTextField)comp.GetChild("txtExchangeCount");
  73. m_listItem = (GList)comp.GetChild("listItem");
  74. m_txtShow = (GTextField)comp.GetChild("txtShow");
  75. m_btnMinus = (UI_Button2)UI_Button2.Create(comp.GetChild("btnMinus"));
  76. m_btnAdd = (UI_Button16)UI_Button16.Create(comp.GetChild("btnAdd"));
  77. m_btnMax = (UI_Button3)UI_Button3.Create(comp.GetChild("btnMax"));
  78. m_txtCostCount = (GTextField)comp.GetChild("txtCostCount");
  79. m_txtTips = (GTextField)comp.GetChild("txtTips");
  80. m_comCost = (UI_ComCostCurrency)UI_ComCostCurrency.Create(comp.GetChild("comCost"));
  81. m_txtRmbCost = (GTextField)comp.GetChild("txtRmbCost");
  82. m_btnCancle = (GButton)comp.GetChild("btnCancle");
  83. m_btnConfirm = (GButton)comp.GetChild("btnConfirm");
  84. }
  85. public void Dispose(bool disposeTarget = false)
  86. {
  87. m_txtName = null;
  88. m_txtOwned = null;
  89. m_loaRarity = null;
  90. m_loaIcon = null;
  91. m_txtDesc = null;
  92. m_txtExchangeCount = null;
  93. m_listItem = null;
  94. m_txtShow = null;
  95. m_btnMinus.Dispose();
  96. m_btnMinus = null;
  97. m_btnAdd.Dispose();
  98. m_btnAdd = null;
  99. m_btnMax.Dispose();
  100. m_btnMax = null;
  101. m_txtCostCount = null;
  102. m_txtTips = null;
  103. m_comCost.Dispose();
  104. m_comCost = null;
  105. m_txtRmbCost = null;
  106. m_btnCancle = null;
  107. m_btnConfirm = null;
  108. if(disposeTarget && target != null)
  109. {
  110. target.RemoveFromParent();
  111. target.Dispose();
  112. }
  113. target = null;
  114. }
  115. }
  116. }