/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.LuckyBox { public partial class UI_LuckyBoxUI { public GComponent target; public Controller m_c1; public GList m_listBg; public GButton m_btnBack; public GButton m_btnHome; public GComponent m_valueBar; public UI_Button3 m_btnPreview; public UI_Button3 m_btnExchange; public GTextField m_txtOwned; public GGroup m_grpTop; public UI_ComCost m_comCostOne; public UI_ComCost m_comCostTen; public UI_Button1 m_btnBuyOne; public UI_Button2 m_btnBuyTen; public GImage m_imgSpecial; public GTextField m_txtRemainTimes; public GGroup m_grpBottom; public GButton m_btnLeft; public GButton m_btnRight; public const string URL = "ui://drx9d1usfka79"; public const string PACKAGE_NAME = "LuckyBox"; public const string RES_NAME = "LuckyBoxUI"; private static UI_LuckyBoxUI _proxy; public static UI_LuckyBoxUI Create(GObject gObject = null) { var ui = new UI_LuckyBoxUI(); 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_LuckyBoxUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_LuckyBoxUI(); } 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_listBg = (GList)comp.GetChild("listBg"); m_btnBack = (GButton)comp.GetChild("btnBack"); m_btnHome = (GButton)comp.GetChild("btnHome"); m_valueBar = (GComponent)comp.GetChild("valueBar"); m_btnPreview = (UI_Button3)UI_Button3.Create(comp.GetChild("btnPreview")); m_btnExchange = (UI_Button3)UI_Button3.Create(comp.GetChild("btnExchange")); m_txtOwned = (GTextField)comp.GetChild("txtOwned"); m_grpTop = (GGroup)comp.GetChild("grpTop"); m_comCostOne = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostOne")); m_comCostTen = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostTen")); m_btnBuyOne = (UI_Button1)UI_Button1.Create(comp.GetChild("btnBuyOne")); m_btnBuyTen = (UI_Button2)UI_Button2.Create(comp.GetChild("btnBuyTen")); m_imgSpecial = (GImage)comp.GetChild("imgSpecial"); m_txtRemainTimes = (GTextField)comp.GetChild("txtRemainTimes"); m_grpBottom = (GGroup)comp.GetChild("grpBottom"); m_btnLeft = (GButton)comp.GetChild("btnLeft"); m_btnRight = (GButton)comp.GetChild("btnRight"); } public void Dispose(bool disposeTarget = false) { m_c1 = null; m_listBg = null; m_btnBack = null; m_btnHome = null; m_valueBar = null; m_btnPreview.Dispose(); m_btnPreview = null; m_btnExchange.Dispose(); m_btnExchange = null; m_txtOwned = null; m_grpTop = null; m_comCostOne.Dispose(); m_comCostOne = null; m_comCostTen.Dispose(); m_comCostTen = null; m_btnBuyOne.Dispose(); m_btnBuyOne = null; m_btnBuyTen.Dispose(); m_btnBuyTen = null; m_imgSpecial = null; m_txtRemainTimes = null; m_grpBottom = null; m_btnLeft = null; m_btnRight = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }