UI_ActivityHuaRongDaoEntryUI.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.ActivityHuaRongDao
  4. {
  5. public partial class UI_ActivityHuaRongDaoEntryUI
  6. {
  7. public GComponent target;
  8. public Controller m_activityID;
  9. public GLoader m_loaBg;
  10. public GButton m_btnClose;
  11. public GButton m_btnRule;
  12. public GButton m_btnBack;
  13. public UI_scrollPane m_scrollPane;
  14. public GTextField m_curLevel;
  15. public GTextField m_txtTime;
  16. public GButton m_btnStart;
  17. public GTextField m_challengeTimes;
  18. public Transition m_hide;
  19. public Transition m_show;
  20. public const string URL = "ui://wf8geywtltoy4";
  21. public const string PACKAGE_NAME = "ActivityHuaRongDao";
  22. public const string RES_NAME = "ActivityHuaRongDaoEntryUI";
  23. private static UI_ActivityHuaRongDaoEntryUI _proxy;
  24. public static UI_ActivityHuaRongDaoEntryUI Create(GObject gObject = null)
  25. {
  26. var ui = new UI_ActivityHuaRongDaoEntryUI();
  27. if(gObject == null)
  28. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  29. else
  30. ui.target = (GComponent)gObject;
  31. ui.Init(ui.target);
  32. return ui;
  33. }
  34. public static UI_ActivityHuaRongDaoEntryUI Proxy(GObject gObject = null)
  35. {
  36. if(_proxy == null)
  37. {
  38. _proxy = new UI_ActivityHuaRongDaoEntryUI();
  39. }
  40. var ui = _proxy;
  41. if(gObject == null)
  42. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  43. else
  44. ui.target = (GComponent)gObject;
  45. ui.Init(ui.target);
  46. return ui;
  47. }
  48. public static void ProxyEnd()
  49. {
  50. if (_proxy != null)
  51. {
  52. _proxy.Dispose();
  53. }
  54. }
  55. public static void ClearProxy()
  56. {
  57. ProxyEnd();
  58. _proxy = null;
  59. }
  60. private void Init(GComponent comp)
  61. {
  62. m_activityID = comp.GetController("activityID");
  63. m_loaBg = (GLoader)comp.GetChild("loaBg");
  64. m_btnClose = (GButton)comp.GetChild("btnClose");
  65. m_btnRule = (GButton)comp.GetChild("btnRule");
  66. m_btnBack = (GButton)comp.GetChild("btnBack");
  67. m_scrollPane = (UI_scrollPane)UI_scrollPane.Create(comp.GetChild("scrollPane"));
  68. m_curLevel = (GTextField)comp.GetChild("curLevel");
  69. m_txtTime = (GTextField)comp.GetChild("txtTime");
  70. m_btnStart = (GButton)comp.GetChild("btnStart");
  71. m_challengeTimes = (GTextField)comp.GetChild("challengeTimes");
  72. m_hide = comp.GetTransition("hide");
  73. m_show = comp.GetTransition("show");
  74. }
  75. public void Dispose(bool disposeTarget = false)
  76. {
  77. m_activityID = null;
  78. m_loaBg = null;
  79. m_btnClose = null;
  80. m_btnRule = null;
  81. m_btnBack = null;
  82. m_scrollPane.Dispose();
  83. m_scrollPane = null;
  84. m_curLevel = null;
  85. m_txtTime = null;
  86. m_btnStart = null;
  87. m_challengeTimes = null;
  88. m_hide = null;
  89. m_show = null;
  90. if(disposeTarget && target != null)
  91. {
  92. target.RemoveFromParent();
  93. target.Dispose();
  94. }
  95. target = null;
  96. }
  97. }
  98. }