UI_ComBox.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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
  6. {
  7. public GComponent target;
  8. public UI_ComModel m_comModel;
  9. public UI_Button3 m_btnPreview;
  10. public GTextField m_txtOwned;
  11. public GImage m_imgActLuckyBox;
  12. public GTextField m_txtTime;
  13. public GGroup m_grpLuckyBox;
  14. public UI_ComCost m_comCostOne;
  15. public UI_ComCost m_comCostTen;
  16. public UI_Button1 m_btnBuyOne;
  17. public UI_Button2 m_btnBuyTen;
  18. public GImage m_imgSpecial;
  19. public GTextField m_txtRemainTimes;
  20. public const string URL = "ui://drx9d1usnjmn2p";
  21. public const string PACKAGE_NAME = "LuckyBox";
  22. public const string RES_NAME = "ComBox";
  23. private static UI_ComBox _proxy;
  24. public static UI_ComBox Create(GObject gObject = null)
  25. {
  26. var ui = new UI_ComBox();
  27. if(gObject == null)
  28. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  29. else
  30. ui.target = (GComponent)gObject;
  31. ui.Init(ui.target);
  32. return ui;
  33. }
  34. public static UI_ComBox Proxy(GObject gObject = null)
  35. {
  36. if(_proxy == null)
  37. {
  38. _proxy = new UI_ComBox();
  39. }
  40. var ui = _proxy;
  41. if(gObject == null)
  42. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  43. else
  44. ui.target = (GComponent)gObject;
  45. ui.Init(ui.target);
  46. return ui;
  47. }
  48. public static void ProxyEnd()
  49. {
  50. if (_proxy != null)
  51. {
  52. _proxy.Dispose();
  53. }
  54. }
  55. public static void ClearProxy()
  56. {
  57. ProxyEnd();
  58. _proxy = null;
  59. }
  60. private void Init(GComponent comp)
  61. {
  62. m_comModel = (UI_ComModel)UI_ComModel.Create(comp.GetChild("comModel"));
  63. m_btnPreview = (UI_Button3)UI_Button3.Create(comp.GetChild("btnPreview"));
  64. m_txtOwned = (GTextField)comp.GetChild("txtOwned");
  65. m_imgActLuckyBox = (GImage)comp.GetChild("imgActLuckyBox");
  66. m_txtTime = (GTextField)comp.GetChild("txtTime");
  67. m_grpLuckyBox = (GGroup)comp.GetChild("grpLuckyBox");
  68. m_comCostOne = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostOne"));
  69. m_comCostTen = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostTen"));
  70. m_btnBuyOne = (UI_Button1)UI_Button1.Create(comp.GetChild("btnBuyOne"));
  71. m_btnBuyTen = (UI_Button2)UI_Button2.Create(comp.GetChild("btnBuyTen"));
  72. m_imgSpecial = (GImage)comp.GetChild("imgSpecial");
  73. m_txtRemainTimes = (GTextField)comp.GetChild("txtRemainTimes");
  74. }
  75. public void Dispose(bool disposeTarget = false)
  76. {
  77. m_comModel.Dispose();
  78. m_comModel = null;
  79. m_btnPreview.Dispose();
  80. m_btnPreview = null;
  81. m_txtOwned = null;
  82. m_imgActLuckyBox = null;
  83. m_txtTime = null;
  84. m_grpLuckyBox = null;
  85. m_comCostOne.Dispose();
  86. m_comCostOne = null;
  87. m_comCostTen.Dispose();
  88. m_comCostTen = null;
  89. m_btnBuyOne.Dispose();
  90. m_btnBuyOne = null;
  91. m_btnBuyTen.Dispose();
  92. m_btnBuyTen = null;
  93. m_imgSpecial = null;
  94. m_txtRemainTimes = null;
  95. if(disposeTarget && target != null)
  96. {
  97. target.RemoveFromParent();
  98. target.Dispose();
  99. }
  100. target = null;
  101. }
  102. }
  103. }