/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.Store { public partial class UI_ItemExchangeUI { public GComponent target; public GComponent m_bg; public GTextField m_txtName; public GLoader m_icon; public GLoader m_rarity; public GTextField m_txtNum; public GTextField m_txtLastCount; public GTextField m_txtHasCount; public GTextField m_txtCount; public GButton m_btnPlus; public GButton m_btnMinus; public GButton m_btnAll; public GLoader m_iconPrice; public GTextField m_txtPrice; public GButton m_btnExchange; public GTextField m_txtDiscribe; public const string URL = "ui://p9mtgheo10nota8"; public const string PACKAGE_NAME = "Store"; public const string RES_NAME = "ItemExchangeUI"; private static UI_ItemExchangeUI _proxy; public static UI_ItemExchangeUI Create(GObject gObject = null) { var ui = new UI_ItemExchangeUI(); 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_ItemExchangeUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_ItemExchangeUI(); } 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_bg = (GComponent)comp.GetChild("bg"); m_txtName = (GTextField)comp.GetChild("txtName"); m_icon = (GLoader)comp.GetChild("icon"); m_rarity = (GLoader)comp.GetChild("rarity"); m_txtNum = (GTextField)comp.GetChild("txtNum"); m_txtLastCount = (GTextField)comp.GetChild("txtLastCount"); m_txtHasCount = (GTextField)comp.GetChild("txtHasCount"); m_txtCount = (GTextField)comp.GetChild("txtCount"); m_btnPlus = (GButton)comp.GetChild("btnPlus"); m_btnMinus = (GButton)comp.GetChild("btnMinus"); m_btnAll = (GButton)comp.GetChild("btnAll"); m_iconPrice = (GLoader)comp.GetChild("iconPrice"); m_txtPrice = (GTextField)comp.GetChild("txtPrice"); m_btnExchange = (GButton)comp.GetChild("btnExchange"); m_txtDiscribe = (GTextField)comp.GetChild("txtDiscribe"); } public void Dispose(bool disposeTarget = false) { m_bg = null; m_txtName = null; m_icon = null; m_rarity = null; m_txtNum = null; m_txtLastCount = null; m_txtHasCount = null; m_txtCount = null; m_btnPlus = null; m_btnMinus = null; m_btnAll = null; m_iconPrice = null; m_txtPrice = null; m_btnExchange = null; m_txtDiscribe = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }