UI_ComponentValueBar.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.CommonGame
  4. {
  5. public partial class UI_ComponentValueBar
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public GButton m_btnCJLuoXing;
  10. public GButton m_btnCJHuoDong;
  11. public GButton m_btnTravel;
  12. public GButton m_btnGallery;
  13. public GButton m_btnPower;
  14. public GButton m_btnCJ;
  15. public GButton m_btnGold;
  16. public GButton m_btnDiamondRed;
  17. public GButton m_btnDiamondPurple;
  18. public GButton m_btnArena;
  19. public const string URL = "ui://eg2y0ldpv3541v";
  20. public const string PACKAGE_NAME = "CommonGame";
  21. public const string RES_NAME = "ComponentValueBar";
  22. private static UI_ComponentValueBar _proxy;
  23. public static UI_ComponentValueBar Create(GObject gObject = null)
  24. {
  25. var ui = new UI_ComponentValueBar();
  26. if(gObject == null)
  27. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  28. else
  29. ui.target = (GComponent)gObject;
  30. ui.Init(ui.target);
  31. return ui;
  32. }
  33. public static UI_ComponentValueBar Proxy(GObject gObject = null)
  34. {
  35. if(_proxy == null)
  36. {
  37. _proxy = new UI_ComponentValueBar();
  38. }
  39. var ui = _proxy;
  40. if(gObject == null)
  41. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  42. else
  43. ui.target = (GComponent)gObject;
  44. ui.Init(ui.target);
  45. return ui;
  46. }
  47. public static void ProxyEnd()
  48. {
  49. if (_proxy != null)
  50. {
  51. _proxy.Dispose();
  52. }
  53. }
  54. public static void ClearProxy()
  55. {
  56. ProxyEnd();
  57. _proxy = null;
  58. }
  59. private void Init(GComponent comp)
  60. {
  61. m_c1 = comp.GetController("c1");
  62. m_btnCJLuoXing = (GButton)comp.GetChild("btnCJLuoXing");
  63. m_btnCJHuoDong = (GButton)comp.GetChild("btnCJHuoDong");
  64. m_btnTravel = (GButton)comp.GetChild("btnTravel");
  65. m_btnGallery = (GButton)comp.GetChild("btnGallery");
  66. m_btnPower = (GButton)comp.GetChild("btnPower");
  67. m_btnCJ = (GButton)comp.GetChild("btnCJ");
  68. m_btnGold = (GButton)comp.GetChild("btnGold");
  69. m_btnDiamondRed = (GButton)comp.GetChild("btnDiamondRed");
  70. m_btnDiamondPurple = (GButton)comp.GetChild("btnDiamondPurple");
  71. m_btnArena = (GButton)comp.GetChild("btnArena");
  72. }
  73. public void Dispose(bool disposeTarget = false)
  74. {
  75. m_c1 = null;
  76. m_btnCJLuoXing = null;
  77. m_btnCJHuoDong = null;
  78. m_btnTravel = null;
  79. m_btnGallery = null;
  80. m_btnPower = null;
  81. m_btnCJ = null;
  82. m_btnGold = null;
  83. m_btnDiamondRed = null;
  84. m_btnDiamondPurple = null;
  85. m_btnArena = null;
  86. if(disposeTarget && target != null)
  87. {
  88. target.RemoveFromParent();
  89. target.Dispose();
  90. }
  91. target = null;
  92. }
  93. }
  94. }