/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.Field { public partial class UI_FieldUI { public GComponent target; public Controller m_c1; public GLoader m_loaBg; public GComponent m_comValueBar; public GButton m_btnBack; public GLoader m_loaIcon; public GGroup m_grpScore; public UI_Button1 m_btn2; public UI_Button1 m_btn1; public UI_Button1 m_btn0; public GGroup m_grpTab; public GButton m_btnTask; public GProgressBar m_proTaskReward; public GLoader m_loaTaskReward; public GGroup m_grpTaskReward; public GTextField m_txtTime; public GGroup m_grpTime; public const string URL = "ui://5oh3t7988jo90"; public const string PACKAGE_NAME = "Field"; public const string RES_NAME = "FieldUI"; private static UI_FieldUI _proxy; public static UI_FieldUI Create(GObject gObject = null) { var ui = new UI_FieldUI(); 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_FieldUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_FieldUI(); } 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_loaBg = (GLoader)comp.GetChild("loaBg"); m_comValueBar = (GComponent)comp.GetChild("comValueBar"); m_btnBack = (GButton)comp.GetChild("btnBack"); m_loaIcon = (GLoader)comp.GetChild("loaIcon"); m_grpScore = (GGroup)comp.GetChild("grpScore"); m_btn2 = (UI_Button1)UI_Button1.Create(comp.GetChild("btn2")); m_btn1 = (UI_Button1)UI_Button1.Create(comp.GetChild("btn1")); m_btn0 = (UI_Button1)UI_Button1.Create(comp.GetChild("btn0")); m_grpTab = (GGroup)comp.GetChild("grpTab"); m_btnTask = (GButton)comp.GetChild("btnTask"); m_proTaskReward = (GProgressBar)comp.GetChild("proTaskReward"); m_loaTaskReward = (GLoader)comp.GetChild("loaTaskReward"); m_grpTaskReward = (GGroup)comp.GetChild("grpTaskReward"); m_txtTime = (GTextField)comp.GetChild("txtTime"); m_grpTime = (GGroup)comp.GetChild("grpTime"); } public void Dispose(bool disposeTarget = false) { m_c1 = null; m_loaBg = null; m_comValueBar = null; m_btnBack = null; m_loaIcon = null; m_grpScore = null; m_btn2.Dispose(); m_btn2 = null; m_btn1.Dispose(); m_btn1 = null; m_btn0.Dispose(); m_btn0 = null; m_grpTab = null; m_btnTask = null; m_proTaskReward = null; m_loaTaskReward = null; m_grpTaskReward = null; m_txtTime = null; m_grpTime = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }