UI_TravelRewardUI.cs 2.4 KB

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