/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.Main { public partial class UI_CompDialogHead { public GComponent target; public GLoader m_bg; public GTextField m_txtName; public UI_Component1 m_compDressUp; public UI_ComponentHead m_comphead; public GTextField m_txtContent; public UI_CompArrow m_iconNext; public const string URL = "ui://mfvz4q8kuftz9fvc"; public const string PACKAGE_NAME = "Main"; public const string RES_NAME = "CompDialogHead"; private static UI_CompDialogHead _proxy; public static UI_CompDialogHead Create(GObject gObject = null) { var ui = new UI_CompDialogHead(); 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_CompDialogHead Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_CompDialogHead(); } 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_bg = (GLoader)comp.GetChild("bg"); m_txtName = (GTextField)comp.GetChild("txtName"); m_compDressUp = (UI_Component1)UI_Component1.Create(comp.GetChild("compDressUp")); m_comphead = (UI_ComponentHead)UI_ComponentHead.Create(comp.GetChild("comphead")); m_txtContent = (GTextField)comp.GetChild("txtContent"); m_iconNext = (UI_CompArrow)UI_CompArrow.Create(comp.GetChild("iconNext")); } public void Dispose(bool disposeTarget = false) { m_bg = null; m_txtName = null; m_compDressUp.Dispose(); m_compDressUp = null; m_comphead.Dispose(); m_comphead = null; m_txtContent = null; m_iconNext.Dispose(); m_iconNext = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }