UI_ItemExchangeUI.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.RechargeStore
  4. {
  5. public partial class UI_ItemExchangeUI
  6. {
  7. public GComponent target;
  8. public GImage m_bg;
  9. public GTextField m_txtName;
  10. public GLoader m_icon;
  11. public GLoader m_rarity;
  12. public GTextField m_txtNum;
  13. public GTextField m_txtBuyCount;
  14. public GTextField m_txtHasCount;
  15. public GTextField m_txtCount;
  16. public GButton m_btnPlus;
  17. public GButton m_btnMinus;
  18. public GButton m_btnAll;
  19. public GLoader m_iconPrice;
  20. public GTextField m_txtPrice;
  21. public GButton m_btnSure;
  22. public GButton m_btnCancel;
  23. public GTextField m_txtBuyTips;
  24. public GTextField m_txtDiscribe;
  25. public const string URL = "ui://vlgobc1510nota8";
  26. public const string PACKAGE_NAME = "RechargeStore";
  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_bg = (GImage)comp.GetChild("bg");
  68. m_txtName = (GTextField)comp.GetChild("txtName");
  69. m_icon = (GLoader)comp.GetChild("icon");
  70. m_rarity = (GLoader)comp.GetChild("rarity");
  71. m_txtNum = (GTextField)comp.GetChild("txtNum");
  72. m_txtBuyCount = (GTextField)comp.GetChild("txtBuyCount");
  73. m_txtHasCount = (GTextField)comp.GetChild("txtHasCount");
  74. m_txtCount = (GTextField)comp.GetChild("txtCount");
  75. m_btnPlus = (GButton)comp.GetChild("btnPlus");
  76. m_btnMinus = (GButton)comp.GetChild("btnMinus");
  77. m_btnAll = (GButton)comp.GetChild("btnAll");
  78. m_iconPrice = (GLoader)comp.GetChild("iconPrice");
  79. m_txtPrice = (GTextField)comp.GetChild("txtPrice");
  80. m_btnSure = (GButton)comp.GetChild("btnSure");
  81. m_btnCancel = (GButton)comp.GetChild("btnCancel");
  82. m_txtBuyTips = (GTextField)comp.GetChild("txtBuyTips");
  83. m_txtDiscribe = (GTextField)comp.GetChild("txtDiscribe");
  84. }
  85. public void Dispose(bool disposeTarget = false)
  86. {
  87. m_bg = null;
  88. m_txtName = null;
  89. m_icon = null;
  90. m_rarity = null;
  91. m_txtNum = null;
  92. m_txtBuyCount = null;
  93. m_txtHasCount = null;
  94. m_txtCount = null;
  95. m_btnPlus = null;
  96. m_btnMinus = null;
  97. m_btnAll = null;
  98. m_iconPrice = null;
  99. m_txtPrice = null;
  100. m_btnSure = null;
  101. m_btnCancel = null;
  102. m_txtBuyTips = null;
  103. m_txtDiscribe = null;
  104. if(disposeTarget && target != null)
  105. {
  106. target.RemoveFromParent();
  107. target.Dispose();
  108. }
  109. target = null;
  110. }
  111. }
  112. }