123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
- using FairyGUI;
- namespace UI.LuckyBox
- {
- public partial class UI_ComBox_2
- {
- public GComponent target;
- public UI_ComModel m_comModel;
- public UI_Button3 m_btnPreview;
- public UI_Button3 m_btnExchange;
- public GTextField m_txtOwned;
- 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 const string URL = "ui://drx9d1usnjmn2n";
- public const string PACKAGE_NAME = "LuckyBox";
- public const string RES_NAME = "ComBox_2";
- private static UI_ComBox_2 _proxy;
- public static UI_ComBox_2 Create(GObject gObject = null)
- {
- var ui = new UI_ComBox_2();
- 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_ComBox_2 Proxy(GObject gObject = null)
- {
- if(_proxy == null)
- {
- _proxy = new UI_ComBox_2();
- }
- 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_comModel = (UI_ComModel)UI_ComModel.Create(comp.GetChild("comModel"));
- 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_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");
- }
- public void Dispose(bool disposeTarget = false)
- {
- m_comModel.Dispose();
- m_comModel = null;
- m_btnPreview.Dispose();
- m_btnPreview = null;
- m_btnExchange.Dispose();
- m_btnExchange = null;
- m_txtOwned = 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;
- if(disposeTarget && target != null)
- {
- target.RemoveFromParent();
- target.Dispose();
- }
- target = null;
- }
- }
- }
|