12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
- using FairyGUI;
- namespace UI.LuckyBox
- {
- public partial class UI_ComBox1
- {
- public GComponent target;
- public UI_ComModel m_comModel;
- public GLoader m_loaTitle;
- public GTextField m_txtTime;
- public GGroup m_grpTime;
- public GGroup m_grpTitle;
- public GButton m_btnPreview;
- public GTextField m_txtOwned;
- public UI_comLuckBoxBtn m_comLuckBoxBtn;
- public const string URL = "ui://drx9d1usduuftcr";
- public const string PACKAGE_NAME = "LuckyBox";
- public const string RES_NAME = "ComBox1";
- private static UI_ComBox1 _proxy;
- public static UI_ComBox1 Create(GObject gObject = null)
- {
- var ui = new UI_ComBox1();
- 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_ComBox1 Proxy(GObject gObject = null)
- {
- if(_proxy == null)
- {
- _proxy = new UI_ComBox1();
- }
- 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_loaTitle = (GLoader)comp.GetChild("loaTitle");
- m_txtTime = (GTextField)comp.GetChild("txtTime");
- m_grpTime = (GGroup)comp.GetChild("grpTime");
- m_grpTitle = (GGroup)comp.GetChild("grpTitle");
- m_btnPreview = (GButton)comp.GetChild("btnPreview");
- m_txtOwned = (GTextField)comp.GetChild("txtOwned");
- m_comLuckBoxBtn = (UI_comLuckBoxBtn)UI_comLuckBoxBtn.Create(comp.GetChild("comLuckBoxBtn"));
- }
- public void Dispose(bool disposeTarget = false)
- {
- m_comModel.Dispose();
- m_comModel = null;
- m_loaTitle = null;
- m_txtTime = null;
- m_grpTime = null;
- m_grpTitle = null;
- m_btnPreview = null;
- m_txtOwned = null;
- m_comLuckBoxBtn.Dispose();
- m_comLuckBoxBtn = null;
- if(disposeTarget && target != null)
- {
- target.RemoveFromParent();
- target.Dispose();
- }
- target = null;
- }
- }
- }
|