UI_WeeklyGiftTipsUI.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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_WeeklyGiftTipsUI
  6. {
  7. public GComponent target;
  8. public GTextField m_titleText;
  9. public GTextField m_descText;
  10. public GList m_rewardList;
  11. public UI_Button15 m_buyBtn;
  12. public GLoader m_backBtn;
  13. public Transition m_t0;
  14. public const string URL = "ui://4ht5s77udm9g39";
  15. public const string PACKAGE_NAME = "ActivityMain";
  16. public const string RES_NAME = "WeeklyGiftTipsUI";
  17. private static UI_WeeklyGiftTipsUI _proxy;
  18. public static UI_WeeklyGiftTipsUI Create(GObject gObject = null)
  19. {
  20. var ui = new UI_WeeklyGiftTipsUI();
  21. if(gObject == null)
  22. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  23. else
  24. ui.target = (GComponent)gObject;
  25. ui.Init(ui.target);
  26. return ui;
  27. }
  28. public static UI_WeeklyGiftTipsUI Proxy(GObject gObject = null)
  29. {
  30. if(_proxy == null)
  31. {
  32. _proxy = new UI_WeeklyGiftTipsUI();
  33. }
  34. var ui = _proxy;
  35. if(gObject == null)
  36. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  37. else
  38. ui.target = (GComponent)gObject;
  39. ui.Init(ui.target);
  40. return ui;
  41. }
  42. public static void ProxyEnd()
  43. {
  44. if (_proxy != null)
  45. {
  46. _proxy.Dispose();
  47. }
  48. }
  49. public static void ClearProxy()
  50. {
  51. ProxyEnd();
  52. _proxy = null;
  53. }
  54. private void Init(GComponent comp)
  55. {
  56. m_titleText = (GTextField)comp.GetChild("titleText");
  57. m_descText = (GTextField)comp.GetChild("descText");
  58. m_rewardList = (GList)comp.GetChild("rewardList");
  59. m_buyBtn = (UI_Button15)UI_Button15.Create(comp.GetChild("buyBtn"));
  60. m_backBtn = (GLoader)comp.GetChild("backBtn");
  61. m_t0 = comp.GetTransition("t0");
  62. }
  63. public void Dispose(bool disposeTarget = false)
  64. {
  65. m_titleText = null;
  66. m_descText = null;
  67. m_rewardList = null;
  68. m_buyBtn.Dispose();
  69. m_buyBtn = null;
  70. m_backBtn = null;
  71. m_t0 = null;
  72. if(disposeTarget && target != null)
  73. {
  74. target.RemoveFromParent();
  75. target.Dispose();
  76. }
  77. target = null;
  78. }
  79. }
  80. }