/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.CommonGame { public partial class UI_ComponentValueBar { public GComponent target; public Controller m_c1; public GButton m_btnCJLuoXing; public GButton m_btnCJHuoDong; public GButton m_btnTravel; public GButton m_btnGallery; public GButton m_btnPower; public GButton m_btnCJ; public GButton m_btnGold; public GButton m_btnDiamondRed; public GButton m_btnDiamondPurple; public const string URL = "ui://eg2y0ldpv3541v"; public const string PACKAGE_NAME = "CommonGame"; public const string RES_NAME = "ComponentValueBar"; private static UI_ComponentValueBar _proxy; public static UI_ComponentValueBar Create(GObject gObject = null) { var ui = new UI_ComponentValueBar(); if(gObject == null) ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME); else ui.target = (GComponent)gObject; ui.Init(ui.target); return ui; } public static UI_ComponentValueBar Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_ComponentValueBar(); } var ui = _proxy; if(gObject == null) ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME); else ui.target = (GComponent)gObject; ui.Init(ui.target); return ui; } public static void ProxyEnd() { if (_proxy != null) { _proxy.Dispose(); } } public static void ClearProxy() { ProxyEnd(); _proxy = null; } private void Init(GComponent comp) { m_c1 = comp.GetController("c1"); m_btnCJLuoXing = (GButton)comp.GetChild("btnCJLuoXing"); m_btnCJHuoDong = (GButton)comp.GetChild("btnCJHuoDong"); m_btnTravel = (GButton)comp.GetChild("btnTravel"); m_btnGallery = (GButton)comp.GetChild("btnGallery"); m_btnPower = (GButton)comp.GetChild("btnPower"); m_btnCJ = (GButton)comp.GetChild("btnCJ"); m_btnGold = (GButton)comp.GetChild("btnGold"); m_btnDiamondRed = (GButton)comp.GetChild("btnDiamondRed"); m_btnDiamondPurple = (GButton)comp.GetChild("btnDiamondPurple"); } public void Dispose(bool disposeTarget = false) { m_c1 = null; m_btnCJLuoXing = null; m_btnCJHuoDong = null; m_btnTravel = null; m_btnGallery = null; m_btnPower = null; m_btnCJ = null; m_btnGold = null; m_btnDiamondRed = null; m_btnDiamondPurple = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }