/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.EnduringGiftBox { public partial class UI_EnduringGiftBoxUI { public GComponent target; public GGraph m_holderPaoMax; public GGraph m_holderPaoMin; public GGraph m_holderBaby; public GGraph m_holderFg; public GTextField m_txtPrompt; public GButton m_btnCancel; public GButton m_btnSub; public GTextField m_txtPromptExt; public UI_ComCurSupply m_curSupply; public UI_ComCurSupply m_weekSupply; public GImage m_btnBack; public Transition m_t1; public const string URL = "ui://bdi1qe15qqhz1"; public const string PACKAGE_NAME = "EnduringGiftBox"; public const string RES_NAME = "EnduringGiftBoxUI"; private static UI_EnduringGiftBoxUI _proxy; public static UI_EnduringGiftBoxUI Create(GObject gObject = null) { var ui = new UI_EnduringGiftBoxUI(); 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_EnduringGiftBoxUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_EnduringGiftBoxUI(); } 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_holderPaoMax = (GGraph)comp.GetChild("holderPaoMax"); m_holderPaoMin = (GGraph)comp.GetChild("holderPaoMin"); m_holderBaby = (GGraph)comp.GetChild("holderBaby"); m_holderFg = (GGraph)comp.GetChild("holderFg"); m_txtPrompt = (GTextField)comp.GetChild("txtPrompt"); m_btnCancel = (GButton)comp.GetChild("btnCancel"); m_btnSub = (GButton)comp.GetChild("btnSub"); m_txtPromptExt = (GTextField)comp.GetChild("txtPromptExt"); m_curSupply = (UI_ComCurSupply)UI_ComCurSupply.Create(comp.GetChild("curSupply")); m_weekSupply = (UI_ComCurSupply)UI_ComCurSupply.Create(comp.GetChild("weekSupply")); m_btnBack = (GImage)comp.GetChild("btnBack"); m_t1 = comp.GetTransition("t1"); } public void Dispose(bool disposeTarget = false) { m_holderPaoMax = null; m_holderPaoMin = null; m_holderBaby = null; m_holderFg = null; m_txtPrompt = null; m_btnCancel = null; m_btnSub = null; m_txtPromptExt = null; m_curSupply.Dispose(); m_curSupply = null; m_weekSupply.Dispose(); m_weekSupply = null; m_btnBack = null; m_t1 = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }