/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.CreateRole { public partial class UI_EnvelopeModel { public GComponent target; public GGraph m_NiaoEffectHolder; public GButton m_btnSure; public UI_ButtonDice m_btnDice; public GTextInput m_inputName; public GGraph m_ShanZiEffectHolder; public GGraph m_TextEffectHolder; public GGraph m_trailEffectHolder; public UI_Envelope m_envelope; public Transition m_t_In; public Transition m_t_Idle; public Transition m_t_Open; public const string URL = "ui://5al8chbdobdno"; public const string PACKAGE_NAME = "CreateRole"; public const string RES_NAME = "EnvelopeModel"; private static UI_EnvelopeModel _proxy; public static UI_EnvelopeModel Create(GObject gObject = null) { var ui = new UI_EnvelopeModel(); 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_EnvelopeModel Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_EnvelopeModel(); } 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_NiaoEffectHolder = (GGraph)comp.GetChild("NiaoEffectHolder"); m_btnSure = (GButton)comp.GetChild("btnSure"); m_btnDice = (UI_ButtonDice)UI_ButtonDice.Create(comp.GetChild("btnDice")); m_inputName = (GTextInput)comp.GetChild("inputName"); m_ShanZiEffectHolder = (GGraph)comp.GetChild("ShanZiEffectHolder"); m_TextEffectHolder = (GGraph)comp.GetChild("TextEffectHolder"); m_trailEffectHolder = (GGraph)comp.GetChild("trailEffectHolder"); m_envelope = (UI_Envelope)UI_Envelope.Create(comp.GetChild("envelope")); m_t_In = comp.GetTransition("t_In"); m_t_Idle = comp.GetTransition("t_Idle"); m_t_Open = comp.GetTransition("t_Open"); } public void Dispose(bool disposeTarget = false) { m_NiaoEffectHolder = null; m_btnSure = null; m_btnDice.Dispose(); m_btnDice = null; m_inputName = null; m_ShanZiEffectHolder = null; m_TextEffectHolder = null; m_trailEffectHolder = null; m_envelope.Dispose(); m_envelope = null; m_t_In = null; m_t_Idle = null; m_t_Open = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }