UI_ComBox1.cs 4.0 KB

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