UI_ActivityMainTipsUI.cs 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.ActivityMain
  4. {
  5. public partial class UI_ActivityMainTipsUI
  6. {
  7. public GComponent target;
  8. public GLoader m_btnChange;
  9. public GLoader m_icon;
  10. public GTextField m_activityDesc;
  11. public GLoader m_notTips;
  12. public GTextField m_activityTime;
  13. public GLoader m_backBtn;
  14. public Transition m_t0;
  15. public Transition m_t1;
  16. public Transition m_t4;
  17. public const string URL = "ui://4ht5s77u806n0";
  18. public const string PACKAGE_NAME = "ActivityMain";
  19. public const string RES_NAME = "ActivityMainTipsUI";
  20. private static UI_ActivityMainTipsUI _proxy;
  21. public static UI_ActivityMainTipsUI Create(GObject gObject = null)
  22. {
  23. var ui = new UI_ActivityMainTipsUI();
  24. if(gObject == null)
  25. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  26. else
  27. ui.target = (GComponent)gObject;
  28. ui.Init(ui.target);
  29. return ui;
  30. }
  31. public static UI_ActivityMainTipsUI Proxy(GObject gObject = null)
  32. {
  33. if(_proxy == null)
  34. {
  35. _proxy = new UI_ActivityMainTipsUI();
  36. }
  37. var ui = _proxy;
  38. if(gObject == null)
  39. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  40. else
  41. ui.target = (GComponent)gObject;
  42. ui.Init(ui.target);
  43. return ui;
  44. }
  45. public static void ProxyEnd()
  46. {
  47. if (_proxy != null)
  48. {
  49. _proxy.Dispose();
  50. }
  51. }
  52. public static void ClearProxy()
  53. {
  54. ProxyEnd();
  55. _proxy = null;
  56. }
  57. private void Init(GComponent comp)
  58. {
  59. m_btnChange = (GLoader)comp.GetChild("btnChange");
  60. m_icon = (GLoader)comp.GetChild("icon");
  61. m_activityDesc = (GTextField)comp.GetChild("activityDesc");
  62. m_notTips = (GLoader)comp.GetChild("notTips");
  63. m_activityTime = (GTextField)comp.GetChild("activityTime");
  64. m_backBtn = (GLoader)comp.GetChild("backBtn");
  65. m_t0 = comp.GetTransition("t0");
  66. m_t1 = comp.GetTransition("t1");
  67. m_t4 = comp.GetTransition("t4");
  68. }
  69. public void Dispose(bool disposeTarget = false)
  70. {
  71. m_btnChange = null;
  72. m_icon = null;
  73. m_activityDesc = null;
  74. m_notTips = null;
  75. m_activityTime = null;
  76. m_backBtn = null;
  77. m_t0 = null;
  78. m_t1 = null;
  79. m_t4 = null;
  80. if(disposeTarget && target != null)
  81. {
  82. target.RemoveFromParent();
  83. target.Dispose();
  84. }
  85. target = null;
  86. }
  87. }
  88. }