UI_BuyCountUI.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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_BuyCountUI
  6. {
  7. public GComponent target;
  8. public GImage m_bg;
  9. public GButton m_btnAll;
  10. public GLoader m_icon;
  11. public GLoader m_rarity;
  12. public GTextField m_txtName;
  13. public GButton m_btnPlus;
  14. public GButton m_btnMinus;
  15. public GTextField m_txtCount;
  16. public GLoader m_iconPrice;
  17. public GTextField m_txtPrice;
  18. public GButton m_btnSure;
  19. public GButton m_btnCancel;
  20. public GTextField m_txtBuyTips;
  21. public const string URL = "ui://eg2y0ldphinb5r";
  22. public const string PACKAGE_NAME = "CommonGame";
  23. public const string RES_NAME = "BuyCountUI";
  24. private static UI_BuyCountUI _proxy;
  25. public static UI_BuyCountUI Create(GObject gObject = null)
  26. {
  27. var ui = new UI_BuyCountUI();
  28. if(gObject == null)
  29. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  30. else
  31. ui.target = (GComponent)gObject;
  32. ui.Init(ui.target);
  33. return ui;
  34. }
  35. public static UI_BuyCountUI Proxy(GObject gObject = null)
  36. {
  37. if(_proxy == null)
  38. {
  39. _proxy = new UI_BuyCountUI();
  40. }
  41. var ui = _proxy;
  42. if(gObject == null)
  43. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  44. else
  45. ui.target = (GComponent)gObject;
  46. ui.Init(ui.target);
  47. return ui;
  48. }
  49. public static void ProxyEnd()
  50. {
  51. if (_proxy != null)
  52. {
  53. _proxy.Dispose();
  54. }
  55. }
  56. public static void ClearProxy()
  57. {
  58. ProxyEnd();
  59. _proxy = null;
  60. }
  61. private void Init(GComponent comp)
  62. {
  63. m_bg = (GImage)comp.GetChild("bg");
  64. m_btnAll = (GButton)comp.GetChild("btnAll");
  65. m_icon = (GLoader)comp.GetChild("icon");
  66. m_rarity = (GLoader)comp.GetChild("rarity");
  67. m_txtName = (GTextField)comp.GetChild("txtName");
  68. m_btnPlus = (GButton)comp.GetChild("btnPlus");
  69. m_btnMinus = (GButton)comp.GetChild("btnMinus");
  70. m_txtCount = (GTextField)comp.GetChild("txtCount");
  71. m_iconPrice = (GLoader)comp.GetChild("iconPrice");
  72. m_txtPrice = (GTextField)comp.GetChild("txtPrice");
  73. m_btnSure = (GButton)comp.GetChild("btnSure");
  74. m_btnCancel = (GButton)comp.GetChild("btnCancel");
  75. m_txtBuyTips = (GTextField)comp.GetChild("txtBuyTips");
  76. }
  77. public void Dispose(bool disposeTarget = false)
  78. {
  79. m_bg = null;
  80. m_btnAll = null;
  81. m_icon = null;
  82. m_rarity = null;
  83. m_txtName = null;
  84. m_btnPlus = null;
  85. m_btnMinus = null;
  86. m_txtCount = null;
  87. m_iconPrice = null;
  88. m_txtPrice = null;
  89. m_btnSure = null;
  90. m_btnCancel = null;
  91. m_txtBuyTips = null;
  92. if(disposeTarget && target != null)
  93. {
  94. target.RemoveFromParent();
  95. target.Dispose();
  96. }
  97. target = null;
  98. }
  99. }
  100. }