UI_ComBox_1.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.LuckyBox
  4. {
  5. public partial class UI_ComBox_1
  6. {
  7. public GComponent target;
  8. public GLoader m_loaBg;
  9. public UI_Button3 m_btnPreview;
  10. public UI_Button3 m_btnExchange;
  11. public GTextField m_txtOwned;
  12. public GGraph m_holder;
  13. public GGraph m_holder1;
  14. public GTextField m_txtTime;
  15. public UI_ComCost m_comCostOne;
  16. public UI_ComCost m_comCostTen;
  17. public UI_Button1 m_btnBuyOne;
  18. public UI_Button2 m_btnBuyTen;
  19. public GImage m_imgSpecial;
  20. public GTextField m_txtRemainTimes;
  21. public const string URL = "ui://drx9d1usnjmn2p";
  22. public const string PACKAGE_NAME = "LuckyBox";
  23. public const string RES_NAME = "ComBox_1";
  24. private static UI_ComBox_1 _proxy;
  25. public static UI_ComBox_1 Create(GObject gObject = null)
  26. {
  27. var ui = new UI_ComBox_1();
  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_ComBox_1 Proxy(GObject gObject = null)
  36. {
  37. if(_proxy == null)
  38. {
  39. _proxy = new UI_ComBox_1();
  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_loaBg = (GLoader)comp.GetChild("loaBg");
  64. m_btnPreview = (UI_Button3)UI_Button3.Create(comp.GetChild("btnPreview"));
  65. m_btnExchange = (UI_Button3)UI_Button3.Create(comp.GetChild("btnExchange"));
  66. m_txtOwned = (GTextField)comp.GetChild("txtOwned");
  67. m_holder = (GGraph)comp.GetChild("holder");
  68. m_holder1 = (GGraph)comp.GetChild("holder1");
  69. m_txtTime = (GTextField)comp.GetChild("txtTime");
  70. m_comCostOne = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostOne"));
  71. m_comCostTen = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostTen"));
  72. m_btnBuyOne = (UI_Button1)UI_Button1.Create(comp.GetChild("btnBuyOne"));
  73. m_btnBuyTen = (UI_Button2)UI_Button2.Create(comp.GetChild("btnBuyTen"));
  74. m_imgSpecial = (GImage)comp.GetChild("imgSpecial");
  75. m_txtRemainTimes = (GTextField)comp.GetChild("txtRemainTimes");
  76. }
  77. public void Dispose(bool disposeTarget = false)
  78. {
  79. m_loaBg = null;
  80. m_btnPreview.Dispose();
  81. m_btnPreview = null;
  82. m_btnExchange.Dispose();
  83. m_btnExchange = null;
  84. m_txtOwned = null;
  85. m_holder = null;
  86. m_holder1 = null;
  87. m_txtTime = null;
  88. m_comCostOne.Dispose();
  89. m_comCostOne = null;
  90. m_comCostTen.Dispose();
  91. m_comCostTen = null;
  92. m_btnBuyOne.Dispose();
  93. m_btnBuyOne = null;
  94. m_btnBuyTen.Dispose();
  95. m_btnBuyTen = null;
  96. m_imgSpecial = null;
  97. m_txtRemainTimes = null;
  98. if(disposeTarget && target != null)
  99. {
  100. target.RemoveFromParent();
  101. target.Dispose();
  102. }
  103. target = null;
  104. }
  105. }
  106. }