UI_ComBox1.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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 GTextField m_txtRemainTimes;
  20. public GImage m_imgSpecial;
  21. public GGraph m_holder;
  22. public GGroup m_grpSpecial;
  23. public const string URL = "ui://drx9d1usduuftcr";
  24. public const string PACKAGE_NAME = "LuckyBox";
  25. public const string RES_NAME = "ComBox1";
  26. private static UI_ComBox1 _proxy;
  27. public static UI_ComBox1 Create(GObject gObject = null)
  28. {
  29. var ui = new UI_ComBox1();
  30. if(gObject == null)
  31. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  32. else
  33. ui.target = (GComponent)gObject;
  34. ui.Init(ui.target);
  35. return ui;
  36. }
  37. public static UI_ComBox1 Proxy(GObject gObject = null)
  38. {
  39. if(_proxy == null)
  40. {
  41. _proxy = new UI_ComBox1();
  42. }
  43. var ui = _proxy;
  44. if(gObject == null)
  45. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  46. else
  47. ui.target = (GComponent)gObject;
  48. ui.Init(ui.target);
  49. return ui;
  50. }
  51. public static void ProxyEnd()
  52. {
  53. if (_proxy != null)
  54. {
  55. _proxy.Dispose();
  56. }
  57. }
  58. public static void ClearProxy()
  59. {
  60. ProxyEnd();
  61. _proxy = null;
  62. }
  63. private void Init(GComponent comp)
  64. {
  65. m_comModel = (UI_ComModel)UI_ComModel.Create(comp.GetChild("comModel"));
  66. m_loaTitle = (GLoader)comp.GetChild("loaTitle");
  67. m_txtTime = (GTextField)comp.GetChild("txtTime");
  68. m_grpTime = (GGroup)comp.GetChild("grpTime");
  69. m_grpTitle = (GGroup)comp.GetChild("grpTitle");
  70. m_btnPreview = (GButton)comp.GetChild("btnPreview");
  71. m_txtOwned = (GTextField)comp.GetChild("txtOwned");
  72. m_comCostOne = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostOne"));
  73. m_comCostTen = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostTen"));
  74. m_btnBuyOne = (GButton)comp.GetChild("btnBuyOne");
  75. m_btnBuyTen = (GButton)comp.GetChild("btnBuyTen");
  76. m_txtRemainTimes = (GTextField)comp.GetChild("txtRemainTimes");
  77. m_imgSpecial = (GImage)comp.GetChild("imgSpecial");
  78. m_holder = (GGraph)comp.GetChild("holder");
  79. m_grpSpecial = (GGroup)comp.GetChild("grpSpecial");
  80. }
  81. public void Dispose(bool disposeTarget = false)
  82. {
  83. m_comModel.Dispose();
  84. m_comModel = null;
  85. m_loaTitle = null;
  86. m_txtTime = null;
  87. m_grpTime = null;
  88. m_grpTitle = null;
  89. m_btnPreview = null;
  90. m_txtOwned = null;
  91. m_comCostOne.Dispose();
  92. m_comCostOne = null;
  93. m_comCostTen.Dispose();
  94. m_comCostTen = null;
  95. m_btnBuyOne = null;
  96. m_btnBuyTen = null;
  97. m_txtRemainTimes = null;
  98. m_imgSpecial = null;
  99. m_holder = null;
  100. m_grpSpecial = null;
  101. if(disposeTarget && target != null)
  102. {
  103. target.RemoveFromParent();
  104. target.Dispose();
  105. }
  106. target = null;
  107. }
  108. }
  109. }