/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.Poem { public partial class UI_ComNormal { public GComponent target; public Controller m_c1; public GButton m_btnShop; public GButton m_btnRecommend; public GButton m_btnNewest; public GButton m_btnReward; public GButton m_btnTab0; public GButton m_btnTab1; public GButton m_btnTab2; public GTextField m_txtTheme; public GList m_listRecommend; public GList m_listFriend; public GList m_listRank; public const string URL = "ui://iyz778gkr9ri114"; public const string PACKAGE_NAME = "Poem"; public const string RES_NAME = "ComNormal"; private static UI_ComNormal _proxy; public static UI_ComNormal Create(GObject gObject = null) { var ui = new UI_ComNormal(); 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_ComNormal Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_ComNormal(); } 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_btnShop = (GButton)comp.GetChild("btnShop"); m_btnRecommend = (GButton)comp.GetChild("btnRecommend"); m_btnNewest = (GButton)comp.GetChild("btnNewest"); m_btnReward = (GButton)comp.GetChild("btnReward"); m_btnTab0 = (GButton)comp.GetChild("btnTab0"); m_btnTab1 = (GButton)comp.GetChild("btnTab1"); m_btnTab2 = (GButton)comp.GetChild("btnTab2"); m_txtTheme = (GTextField)comp.GetChild("txtTheme"); m_listRecommend = (GList)comp.GetChild("listRecommend"); m_listFriend = (GList)comp.GetChild("listFriend"); m_listRank = (GList)comp.GetChild("listRank"); } public void Dispose(bool disposeTarget = false) { m_c1 = null; m_btnShop = null; m_btnRecommend = null; m_btnNewest = null; m_btnReward = null; m_btnTab0 = null; m_btnTab1 = null; m_btnTab2 = null; m_txtTheme = null; m_listRecommend = null; m_listFriend = null; m_listRank = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }