UI_ComponentValueBar.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 UI_ButtonInValueBar m_btnCJLuoXing;
  10. public UI_ButtonInValueBar m_btnCJHuoDong;
  11. public UI_ButtonInValueBar m_btnTravel;
  12. public UI_ButtonInValueBar m_btnGallery;
  13. public UI_ButtonInValueBar m_btnPower;
  14. public UI_ButtonInValueBar m_btnCJ;
  15. public UI_ButtonInValueBar m_btnGold;
  16. public UI_ButtonInValueBar m_btnDiamondRed;
  17. public UI_ButtonInValueBar m_btnDiamondPurple;
  18. public UI_ButtonInValueBar m_btnArena;
  19. public UI_ButtonInValueBar m_btnLeagueContribuation;
  20. public GList m_list;
  21. public const string URL = "ui://eg2y0ldpv3541v";
  22. public const string PACKAGE_NAME = "CommonGame";
  23. public const string RES_NAME = "ComponentValueBar";
  24. private static UI_ComponentValueBar _proxy;
  25. public static UI_ComponentValueBar Create(GObject gObject = null)
  26. {
  27. var ui = new UI_ComponentValueBar();
  28. if(gObject == null)
  29. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  30. else
  31. ui.target = (GComponent)gObject;
  32. ui.Init(ui.target);
  33. return ui;
  34. }
  35. public static UI_ComponentValueBar Proxy(GObject gObject = null)
  36. {
  37. if(_proxy == null)
  38. {
  39. _proxy = new UI_ComponentValueBar();
  40. }
  41. var ui = _proxy;
  42. if(gObject == null)
  43. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  44. else
  45. ui.target = (GComponent)gObject;
  46. ui.Init(ui.target);
  47. return ui;
  48. }
  49. public static void ProxyEnd()
  50. {
  51. if (_proxy != null)
  52. {
  53. _proxy.Dispose();
  54. }
  55. }
  56. public static void ClearProxy()
  57. {
  58. ProxyEnd();
  59. _proxy = null;
  60. }
  61. private void Init(GComponent comp)
  62. {
  63. m_c1 = comp.GetController("c1");
  64. m_btnCJLuoXing = (UI_ButtonInValueBar)UI_ButtonInValueBar.Create(comp.GetChild("btnCJLuoXing"));
  65. m_btnCJHuoDong = (UI_ButtonInValueBar)UI_ButtonInValueBar.Create(comp.GetChild("btnCJHuoDong"));
  66. m_btnTravel = (UI_ButtonInValueBar)UI_ButtonInValueBar.Create(comp.GetChild("btnTravel"));
  67. m_btnGallery = (UI_ButtonInValueBar)UI_ButtonInValueBar.Create(comp.GetChild("btnGallery"));
  68. m_btnPower = (UI_ButtonInValueBar)UI_ButtonInValueBar.Create(comp.GetChild("btnPower"));
  69. m_btnCJ = (UI_ButtonInValueBar)UI_ButtonInValueBar.Create(comp.GetChild("btnCJ"));
  70. m_btnGold = (UI_ButtonInValueBar)UI_ButtonInValueBar.Create(comp.GetChild("btnGold"));
  71. m_btnDiamondRed = (UI_ButtonInValueBar)UI_ButtonInValueBar.Create(comp.GetChild("btnDiamondRed"));
  72. m_btnDiamondPurple = (UI_ButtonInValueBar)UI_ButtonInValueBar.Create(comp.GetChild("btnDiamondPurple"));
  73. m_btnArena = (UI_ButtonInValueBar)UI_ButtonInValueBar.Create(comp.GetChild("btnArena"));
  74. m_btnLeagueContribuation = (UI_ButtonInValueBar)UI_ButtonInValueBar.Create(comp.GetChild("btnLeagueContribuation"));
  75. m_list = (GList)comp.GetChild("list");
  76. }
  77. public void Dispose(bool disposeTarget = false)
  78. {
  79. m_c1 = null;
  80. m_btnCJLuoXing.Dispose();
  81. m_btnCJLuoXing = null;
  82. m_btnCJHuoDong.Dispose();
  83. m_btnCJHuoDong = null;
  84. m_btnTravel.Dispose();
  85. m_btnTravel = null;
  86. m_btnGallery.Dispose();
  87. m_btnGallery = null;
  88. m_btnPower.Dispose();
  89. m_btnPower = null;
  90. m_btnCJ.Dispose();
  91. m_btnCJ = null;
  92. m_btnGold.Dispose();
  93. m_btnGold = null;
  94. m_btnDiamondRed.Dispose();
  95. m_btnDiamondRed = null;
  96. m_btnDiamondPurple.Dispose();
  97. m_btnDiamondPurple = null;
  98. m_btnArena.Dispose();
  99. m_btnArena = null;
  100. m_btnLeagueContribuation.Dispose();
  101. m_btnLeagueContribuation = null;
  102. m_list = null;
  103. if(disposeTarget && target != null)
  104. {
  105. target.RemoveFromParent();
  106. target.Dispose();
  107. }
  108. target = null;
  109. }
  110. }
  111. }