UI_ItemExchangeUI.cs 4.1 KB

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