UI_ItemExchangeUI.cs 4.0 KB

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