123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
- using FairyGUI;
- namespace UI.Task
- {
- public partial class UI_TaskUI
- {
- public GComponent target;
- public Controller m_c1;
- public GLoader m_loaBg;
- public GLoader m_Top_img;
- public GButton m_btnBack;
- public GButton m_btnTask;
- public GButton m_btnWeekly;
- public UI_CombTaskUI m_taskInfoCom;
- public GButton m_btnAchieve;
- public const string URL = "ui://5mpsibzzfqor2n";
- public const string PACKAGE_NAME = "Task";
- public const string RES_NAME = "TaskUI";
- private static UI_TaskUI _proxy;
- public static UI_TaskUI Create(GObject gObject = null)
- {
- var ui = new UI_TaskUI();
- 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_TaskUI Proxy(GObject gObject = null)
- {
- if(_proxy == null)
- {
- _proxy = new UI_TaskUI();
- }
- 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_loaBg = (GLoader)comp.GetChild("loaBg");
- m_Top_img = (GLoader)comp.GetChild("Top_img");
- m_btnBack = (GButton)comp.GetChild("btnBack");
- m_btnTask = (GButton)comp.GetChild("btnTask");
- m_btnWeekly = (GButton)comp.GetChild("btnWeekly");
- m_taskInfoCom = (UI_CombTaskUI)UI_CombTaskUI.Create(comp.GetChild("taskInfoCom"));
- m_btnAchieve = (GButton)comp.GetChild("btnAchieve");
- }
- public void Dispose(bool disposeTarget = false)
- {
- m_c1 = null;
- m_loaBg = null;
- m_Top_img = null;
- m_btnBack = null;
- m_btnTask = null;
- m_btnWeekly = null;
- m_taskInfoCom.Dispose();
- m_taskInfoCom = null;
- m_btnAchieve = null;
- if(disposeTarget && target != null)
- {
- target.RemoveFromParent();
- target.Dispose();
- }
- target = null;
- }
- }
- }
|