/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.CommonGame { public partial class UI_ComItemIconNew { public GComponent target; public GLoader m_bg; public GLoader m_loaIcon; public GTextField m_txtHasCount; public GLoader m_loaRarity; public GLoader m_numBg; public GImage m_imgHas; public GImage m_imgNotHas; public GImage m_imgShowTong; public GGroup m_grpGot; public const string URL = "ui://eg2y0ldp9jv6tlt"; public const string PACKAGE_NAME = "CommonGame"; public const string RES_NAME = "ComItemIconNew"; private static UI_ComItemIconNew _proxy; public static UI_ComItemIconNew Create(GObject gObject = null) { var ui = new UI_ComItemIconNew(); 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_ComItemIconNew Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_ComItemIconNew(); } 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_loaIcon = (GLoader)comp.GetChild("loaIcon"); m_txtHasCount = (GTextField)comp.GetChild("txtHasCount"); m_loaRarity = (GLoader)comp.GetChild("loaRarity"); m_numBg = (GLoader)comp.GetChild("numBg"); m_imgHas = (GImage)comp.GetChild("imgHas"); m_imgNotHas = (GImage)comp.GetChild("imgNotHas"); m_imgShowTong = (GImage)comp.GetChild("imgShowTong"); m_grpGot = (GGroup)comp.GetChild("grpGot"); } public void Dispose(bool disposeTarget = false) { m_bg = null; m_loaIcon = null; m_txtHasCount = null; m_loaRarity = null; m_numBg = null; m_imgHas = null; m_imgNotHas = null; m_imgShowTong = null; m_grpGot = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }