UI_SevenDayLoginUI.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.DailyLogin
  4. {
  5. public partial class UI_SevenDayLoginUI
  6. {
  7. public GComponent target;
  8. public GList m_list;
  9. public UI_Component1 m_comIcon;
  10. public const string URL = "ui://5uawdql9lh8v6";
  11. public const string PACKAGE_NAME = "DailyLogin";
  12. public const string RES_NAME = "SevenDayLoginUI";
  13. private static UI_SevenDayLoginUI _proxy;
  14. public static UI_SevenDayLoginUI Create(GObject gObject = null)
  15. {
  16. var ui = new UI_SevenDayLoginUI();
  17. if(gObject == null)
  18. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  19. else
  20. ui.target = (GComponent)gObject;
  21. ui.Init(ui.target);
  22. return ui;
  23. }
  24. public static UI_SevenDayLoginUI Proxy(GObject gObject = null)
  25. {
  26. if(_proxy == null)
  27. {
  28. _proxy = new UI_SevenDayLoginUI();
  29. }
  30. var ui = _proxy;
  31. if(gObject == null)
  32. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  33. else
  34. ui.target = (GComponent)gObject;
  35. ui.Init(ui.target);
  36. return ui;
  37. }
  38. public static void ProxyEnd()
  39. {
  40. if (_proxy != null)
  41. {
  42. _proxy.Dispose();
  43. }
  44. }
  45. public static void ClearProxy()
  46. {
  47. ProxyEnd();
  48. _proxy = null;
  49. }
  50. private void Init(GComponent comp)
  51. {
  52. m_list = (GList)comp.GetChild("list");
  53. m_comIcon = (UI_Component1)UI_Component1.Create(comp.GetChild("comIcon"));
  54. }
  55. public void Dispose(bool disposeTarget = false)
  56. {
  57. m_list = null;
  58. m_comIcon.Dispose();
  59. m_comIcon = null;
  60. if(disposeTarget && target != null)
  61. {
  62. target.RemoveFromParent();
  63. target.Dispose();
  64. }
  65. target = null;
  66. }
  67. }
  68. }