/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.Main { public partial class UI_StoryFightQuicklyUI { public GComponent target; public Controller m_c1; public GTextField m_txtName; public GTextField m_txtItemName; public GTextField m_txtItemNeedNum; public GGroup m_grpNeeditem; public GList m_list; public GButton m_btnExit; public GButton m_btnFightTimes; public GComponent m_comCostCurrent; public UI_Component4 m_bar; public Transition m_t0; public const string URL = "ui://mfvz4q8ks2cc53"; public const string PACKAGE_NAME = "Main"; public const string RES_NAME = "StoryFightQuicklyUI"; private static UI_StoryFightQuicklyUI _proxy; public static UI_StoryFightQuicklyUI Create(GObject gObject = null) { var ui = new UI_StoryFightQuicklyUI(); 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_StoryFightQuicklyUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_StoryFightQuicklyUI(); } 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_txtName = (GTextField)comp.GetChild("txtName"); m_txtItemName = (GTextField)comp.GetChild("txtItemName"); m_txtItemNeedNum = (GTextField)comp.GetChild("txtItemNeedNum"); m_grpNeeditem = (GGroup)comp.GetChild("grpNeeditem"); m_list = (GList)comp.GetChild("list"); m_btnExit = (GButton)comp.GetChild("btnExit"); m_btnFightTimes = (GButton)comp.GetChild("btnFightTimes"); m_comCostCurrent = (GComponent)comp.GetChild("comCostCurrent"); m_bar = (UI_Component4)UI_Component4.Create(comp.GetChild("bar")); m_t0 = comp.GetTransition("t0"); } public void Dispose(bool disposeTarget = false) { m_c1 = null; m_txtName = null; m_txtItemName = null; m_txtItemNeedNum = null; m_grpNeeditem = null; m_list = null; m_btnExit = null; m_btnFightTimes = null; m_comCostCurrent = null; m_bar.Dispose(); m_bar = null; m_t0 = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }