UI_ComBox1.cs 3.6 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_ComBox1
  6. {
  7. public GComponent target;
  8. public UI_ComModel m_comModel;
  9. public GLoader m_loaTitle;
  10. public GTextField m_txtTime;
  11. public GGroup m_grpTime;
  12. public GGroup m_grpTitle;
  13. public GButton m_btnPreview;
  14. public GTextField m_txtOwned;
  15. public UI_ComCost m_comCostOne;
  16. public UI_ComCost m_comCostTen;
  17. public GButton m_btnBuyOne;
  18. public GButton m_btnBuyTen;
  19. public GImage m_imgSpecial;
  20. public GTextField m_txtRemainTimes;
  21. public const string URL = "ui://drx9d1usduuftcr";
  22. public const string PACKAGE_NAME = "LuckyBox";
  23. public const string RES_NAME = "ComBox1";
  24. private static UI_ComBox1 _proxy;
  25. public static UI_ComBox1 Create(GObject gObject = null)
  26. {
  27. var ui = new UI_ComBox1();
  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_ComBox1 Proxy(GObject gObject = null)
  36. {
  37. if(_proxy == null)
  38. {
  39. _proxy = new UI_ComBox1();
  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_loaTitle = (GLoader)comp.GetChild("loaTitle");
  65. m_txtTime = (GTextField)comp.GetChild("txtTime");
  66. m_grpTime = (GGroup)comp.GetChild("grpTime");
  67. m_grpTitle = (GGroup)comp.GetChild("grpTitle");
  68. m_btnPreview = (GButton)comp.GetChild("btnPreview");
  69. m_txtOwned = (GTextField)comp.GetChild("txtOwned");
  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 = (GButton)comp.GetChild("btnBuyOne");
  73. m_btnBuyTen = (GButton)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_loaTitle = null;
  82. m_txtTime = null;
  83. m_grpTime = null;
  84. m_grpTitle = null;
  85. m_btnPreview = null;
  86. m_txtOwned = null;
  87. m_comCostOne.Dispose();
  88. m_comCostOne = null;
  89. m_comCostTen.Dispose();
  90. m_comCostTen = null;
  91. m_btnBuyOne = null;
  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. }