/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.Main { public partial class UI_StoryChapterUI { public GComponent target; public GLoader m_loaBg; public GGraph m_bgEffect; public UI_CompChapter m_chapter; public GComponent m_valueBar; public GButton m_btnBack; public GButton m_btnHome; public GTextField m_txtChapter; public GLoader m_txtBg; public GTextField m_txtChapterName0; public GTextField m_txtChapterName1; public GTextField m_txtChapterName2; public GTextField m_txtChapterName3; public GTextField m_txtChapterName4; public UI_CompBonusBox m_bonusBox3; public UI_CompBonusBox m_bonusBox2; public UI_CompBonusBox m_bonusBox1; public GTextField m_txtStarCount; public GLoader m_switchChapter; public Transition m_t0; public const string URL = "ui://mfvz4q8km7n51u"; public const string PACKAGE_NAME = "Main"; public const string RES_NAME = "StoryChapterUI"; private static UI_StoryChapterUI _proxy; public static UI_StoryChapterUI Create(GObject gObject = null) { var ui = new UI_StoryChapterUI(); 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_StoryChapterUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_StoryChapterUI(); } 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_loaBg = (GLoader)comp.GetChild("loaBg"); m_bgEffect = (GGraph)comp.GetChild("bgEffect"); m_chapter = (UI_CompChapter)UI_CompChapter.Create(comp.GetChild("chapter")); m_valueBar = (GComponent)comp.GetChild("valueBar"); m_btnBack = (GButton)comp.GetChild("btnBack"); m_btnHome = (GButton)comp.GetChild("btnHome"); m_txtChapter = (GTextField)comp.GetChild("txtChapter"); m_txtBg = (GLoader)comp.GetChild("txtBg"); m_txtChapterName0 = (GTextField)comp.GetChild("txtChapterName0"); m_txtChapterName1 = (GTextField)comp.GetChild("txtChapterName1"); m_txtChapterName2 = (GTextField)comp.GetChild("txtChapterName2"); m_txtChapterName3 = (GTextField)comp.GetChild("txtChapterName3"); m_txtChapterName4 = (GTextField)comp.GetChild("txtChapterName4"); m_bonusBox3 = (UI_CompBonusBox)UI_CompBonusBox.Create(comp.GetChild("bonusBox3")); m_bonusBox2 = (UI_CompBonusBox)UI_CompBonusBox.Create(comp.GetChild("bonusBox2")); m_bonusBox1 = (UI_CompBonusBox)UI_CompBonusBox.Create(comp.GetChild("bonusBox1")); m_txtStarCount = (GTextField)comp.GetChild("txtStarCount"); m_switchChapter = (GLoader)comp.GetChild("switchChapter"); m_t0 = comp.GetTransition("t0"); } public void Dispose(bool disposeTarget = false) { m_loaBg = null; m_bgEffect = null; m_chapter.Dispose(); m_chapter = null; m_valueBar = null; m_btnBack = null; m_btnHome = null; m_txtChapter = null; m_txtBg = null; m_txtChapterName0 = null; m_txtChapterName1 = null; m_txtChapterName2 = null; m_txtChapterName3 = null; m_txtChapterName4 = null; m_bonusBox3.Dispose(); m_bonusBox3 = null; m_bonusBox2.Dispose(); m_bonusBox2 = null; m_bonusBox1.Dispose(); m_bonusBox1 = null; m_txtStarCount = null; m_switchChapter = null; m_t0 = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }