123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
- using FairyGUI;
- namespace UI.Main
- {
- public partial class UI_CompFightExpBar
- {
- public GComponent target;
- public UI_ProgressBar3 m_proExp;
- public GTextField m_txtExpAdded;
- public GTextField m_txtCurExp;
- public GTextField m_txtAllExp;
- public GComponent m_comHead;
- public GGraph m_holderHead;
- public GGraph m_holderProHead;
- public const string URL = "ui://mfvz4q8k8xpg52";
- public const string PACKAGE_NAME = "Main";
- public const string RES_NAME = "CompFightExpBar";
- private static UI_CompFightExpBar _proxy;
- public static UI_CompFightExpBar Create(GObject gObject = null)
- {
- var ui = new UI_CompFightExpBar();
- 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_CompFightExpBar Proxy(GObject gObject = null)
- {
- if(_proxy == null)
- {
- _proxy = new UI_CompFightExpBar();
- }
- 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_proExp = (UI_ProgressBar3)UI_ProgressBar3.Create(comp.GetChild("proExp"));
- m_txtExpAdded = (GTextField)comp.GetChild("txtExpAdded");
- m_txtCurExp = (GTextField)comp.GetChild("txtCurExp");
- m_txtAllExp = (GTextField)comp.GetChild("txtAllExp");
- m_comHead = (GComponent)comp.GetChild("comHead");
- m_holderHead = (GGraph)comp.GetChild("holderHead");
- m_holderProHead = (GGraph)comp.GetChild("holderProHead");
- }
- public void Dispose(bool disposeTarget = false)
- {
- m_proExp.Dispose();
- m_proExp = null;
- m_txtExpAdded = null;
- m_txtCurExp = null;
- m_txtAllExp = null;
- m_comHead = null;
- m_holderHead = null;
- m_holderProHead = null;
- if(disposeTarget && target != null)
- {
- target.RemoveFromParent();
- target.Dispose();
- }
- target = null;
- }
- }
- }
|