UI_ComBox_1.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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 UI_ComModel m_comModel;
  9. public GButton m_btnPreview;
  10. public GButton 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://drx9d1usidkdtan";
  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_comModel = (UI_ComModel)UI_ComModel.Create(comp.GetChild("comModel"));
  64. m_btnPreview = (GButton)comp.GetChild("btnPreview");
  65. m_btnExchange = (GButton)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_comModel.Dispose();
  80. m_comModel = null;
  81. m_btnPreview = null;
  82. m_btnExchange = null;
  83. m_txtOwned = null;
  84. m_holder = null;
  85. m_holder1 = null;
  86. m_txtTime = null;
  87. m_comCostOne.Dispose();
  88. m_comCostOne = null;
  89. m_comCostTen.Dispose();
  90. m_comCostTen = null;
  91. m_btnBuyOne.Dispose();
  92. m_btnBuyOne = null;
  93. m_btnBuyTen.Dispose();
  94. m_btnBuyTen = null;
  95. m_imgSpecial = null;
  96. m_txtRemainTimes = null;
  97. if(disposeTarget && target != null)
  98. {
  99. target.RemoveFromParent();
  100. target.Dispose();
  101. }
  102. target = null;
  103. }
  104. }
  105. }