UI_comLuckBoxBtn.cs 3.1 KB

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