UI_comLuckBoxBtn.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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_comLuckBoxBtn
  6. {
  7. public GComponent target;
  8. public Controller m_btnNumberType;
  9. public UI_ComCost m_comCostOne;
  10. public UI_ComCost m_comCostTen;
  11. public UI_ComCost m_comCostFifty;
  12. public GButton m_btnBuyOne;
  13. public GButton m_btnBuyTen;
  14. public GButton m_btnBuyFifty;
  15. public GRichTextField m_txtRemainTimes;
  16. public GImage m_imgSpecial;
  17. public GGraph m_holder;
  18. public GGroup m_grpSpecial;
  19. public GTextField m_txtFreeTime;
  20. public GGraph m_btnBuyTen_eff;
  21. public GGraph m_Special_eff;
  22. public const string URL = "ui://drx9d1usdkohtf7";
  23. public const string PACKAGE_NAME = "LuckyBox";
  24. public const string RES_NAME = "comLuckBoxBtn";
  25. private static UI_comLuckBoxBtn _proxy;
  26. public static UI_comLuckBoxBtn Create(GObject gObject = null)
  27. {
  28. var ui = new UI_comLuckBoxBtn();
  29. if(gObject == null)
  30. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  31. else
  32. ui.target = (GComponent)gObject;
  33. ui.Init(ui.target);
  34. return ui;
  35. }
  36. public static UI_comLuckBoxBtn Proxy(GObject gObject = null)
  37. {
  38. if(_proxy == null)
  39. {
  40. _proxy = new UI_comLuckBoxBtn();
  41. }
  42. var ui = _proxy;
  43. if(gObject == null)
  44. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  45. else
  46. ui.target = (GComponent)gObject;
  47. ui.Init(ui.target);
  48. return ui;
  49. }
  50. public static void ProxyEnd()
  51. {
  52. if (_proxy != null)
  53. {
  54. _proxy.Dispose();
  55. }
  56. }
  57. public static void ClearProxy()
  58. {
  59. ProxyEnd();
  60. _proxy = null;
  61. }
  62. private void Init(GComponent comp)
  63. {
  64. m_btnNumberType = comp.GetController("btnNumberType");
  65. m_comCostOne = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostOne"));
  66. m_comCostTen = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostTen"));
  67. m_comCostFifty = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostFifty"));
  68. m_btnBuyOne = (GButton)comp.GetChild("btnBuyOne");
  69. m_btnBuyTen = (GButton)comp.GetChild("btnBuyTen");
  70. m_btnBuyFifty = (GButton)comp.GetChild("btnBuyFifty");
  71. m_txtRemainTimes = (GRichTextField)comp.GetChild("txtRemainTimes");
  72. m_imgSpecial = (GImage)comp.GetChild("imgSpecial");
  73. m_holder = (GGraph)comp.GetChild("holder");
  74. m_grpSpecial = (GGroup)comp.GetChild("grpSpecial");
  75. m_txtFreeTime = (GTextField)comp.GetChild("txtFreeTime");
  76. m_btnBuyTen_eff = (GGraph)comp.GetChild("btnBuyTen_eff");
  77. m_Special_eff = (GGraph)comp.GetChild("Special_eff");
  78. }
  79. public void Dispose(bool disposeTarget = false)
  80. {
  81. m_btnNumberType = null;
  82. m_comCostOne.Dispose();
  83. m_comCostOne = null;
  84. m_comCostTen.Dispose();
  85. m_comCostTen = null;
  86. m_comCostFifty.Dispose();
  87. m_comCostFifty = null;
  88. m_btnBuyOne = null;
  89. m_btnBuyTen = null;
  90. m_btnBuyFifty = null;
  91. m_txtRemainTimes = null;
  92. m_imgSpecial = null;
  93. m_holder = null;
  94. m_grpSpecial = null;
  95. m_txtFreeTime = null;
  96. m_btnBuyTen_eff = null;
  97. m_Special_eff = null;
  98. if(disposeTarget && target != null)
  99. {
  100. target.RemoveFromParent();
  101. target.Dispose();
  102. }
  103. target = null;
  104. }
  105. }
  106. }