| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 | /** 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 UI_CompChapter m_chapter;        public GComponent m_valueBar;        public GButton m_btnBack;        public GButton m_btnHome;        public GTextField m_txtChapter;        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 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_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_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");        }        public void Dispose(bool disposeTarget = false)        {            m_loaBg = null;            m_chapter.Dispose();            m_chapter = null;            m_valueBar = null;            m_btnBack = null;            m_btnHome = null;            m_txtChapter = 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;            if(disposeTarget && target != null)            {                target.RemoveFromParent();                target.Dispose();            }            target = null;        }    }}
 |