UI_StudioBuyNumUI.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Studio
  4. {
  5. public partial class UI_StudioBuyNumUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public GLoader m_loaBg;
  10. public GTextField m_txtTitle;
  11. public GTextField m_txtTips;
  12. public GTextField m_txtNum0;
  13. public GTextField m_txtNum1;
  14. public GComponent m_comCostItem;
  15. public GButton m_btnExchange;
  16. public GComponent m_comCostCurrent;
  17. public GButton m_btnBuy;
  18. public GButton m_btnBack;
  19. public const string URL = "ui://xz8kxrecn3xhh";
  20. public const string PACKAGE_NAME = "Studio";
  21. public const string RES_NAME = "StudioBuyNumUI";
  22. private static UI_StudioBuyNumUI _proxy;
  23. public static UI_StudioBuyNumUI Create(GObject gObject = null)
  24. {
  25. var ui = new UI_StudioBuyNumUI();
  26. if(gObject == null)
  27. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  28. else
  29. ui.target = (GComponent)gObject;
  30. ui.Init(ui.target);
  31. return ui;
  32. }
  33. public static UI_StudioBuyNumUI Proxy(GObject gObject = null)
  34. {
  35. if(_proxy == null)
  36. {
  37. _proxy = new UI_StudioBuyNumUI();
  38. }
  39. var ui = _proxy;
  40. if(gObject == null)
  41. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  42. else
  43. ui.target = (GComponent)gObject;
  44. ui.Init(ui.target);
  45. return ui;
  46. }
  47. public static void ProxyEnd()
  48. {
  49. if (_proxy != null)
  50. {
  51. _proxy.Dispose();
  52. }
  53. }
  54. public static void ClearProxy()
  55. {
  56. ProxyEnd();
  57. _proxy = null;
  58. }
  59. private void Init(GComponent comp)
  60. {
  61. m_c1 = comp.GetController("c1");
  62. m_loaBg = (GLoader)comp.GetChild("loaBg");
  63. m_txtTitle = (GTextField)comp.GetChild("txtTitle");
  64. m_txtTips = (GTextField)comp.GetChild("txtTips");
  65. m_txtNum0 = (GTextField)comp.GetChild("txtNum0");
  66. m_txtNum1 = (GTextField)comp.GetChild("txtNum1");
  67. m_comCostItem = (GComponent)comp.GetChild("comCostItem");
  68. m_btnExchange = (GButton)comp.GetChild("btnExchange");
  69. m_comCostCurrent = (GComponent)comp.GetChild("comCostCurrent");
  70. m_btnBuy = (GButton)comp.GetChild("btnBuy");
  71. m_btnBack = (GButton)comp.GetChild("btnBack");
  72. }
  73. public void Dispose(bool disposeTarget = false)
  74. {
  75. m_c1 = null;
  76. m_loaBg = null;
  77. m_txtTitle = null;
  78. m_txtTips = null;
  79. m_txtNum0 = null;
  80. m_txtNum1 = null;
  81. m_comCostItem = null;
  82. m_btnExchange = null;
  83. m_comCostCurrent = null;
  84. m_btnBuy = null;
  85. m_btnBack = null;
  86. if(disposeTarget && target != null)
  87. {
  88. target.RemoveFromParent();
  89. target.Dispose();
  90. }
  91. target = null;
  92. }
  93. }
  94. }