1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
- using FairyGUI;
- namespace UI.RoleInfo
- {
- public partial class UI_ButtonCollectProgress
- {
- public GButton target;
- public Controller m_type;
- public GLoader m_bg;
- public GLoader m_progressBg;
- public GLoader m_progressBar;
- public GTextField m_rate;
- public GTextField m_name;
- public const string URL = "ui://374k3dwvr9ri1j";
- public const string PACKAGE_NAME = "RoleInfo";
- public const string RES_NAME = "ButtonCollectProgress";
- private static UI_ButtonCollectProgress _proxy;
- public static UI_ButtonCollectProgress Create(GObject gObject = null)
- {
- var ui = new UI_ButtonCollectProgress();
- if(gObject == null)
- ui.target = (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
- else
- ui.target = (GButton)gObject;
- ui.Init(ui.target);
- return ui;
- }
- public static UI_ButtonCollectProgress Proxy(GObject gObject = null)
- {
- if(_proxy == null)
- {
- _proxy = new UI_ButtonCollectProgress();
- }
- var ui = _proxy;
- if(gObject == null)
- ui.target = (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
- else
- ui.target = (GButton)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_type = comp.GetController("type");
- m_bg = (GLoader)comp.GetChild("bg");
- m_progressBg = (GLoader)comp.GetChild("progressBg");
- m_progressBar = (GLoader)comp.GetChild("progressBar");
- m_rate = (GTextField)comp.GetChild("rate");
- m_name = (GTextField)comp.GetChild("name");
- }
- public void Dispose(bool disposeTarget = false)
- {
- m_type = null;
- m_bg = null;
- m_progressBg = null;
- m_progressBar = null;
- m_rate = null;
- m_name = null;
- if(disposeTarget && target != null)
- {
- target.RemoveFromParent();
- target.Dispose();
- }
- target = null;
- }
- }
- }
|