UI_LuckyBoxNewDressUI.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.LuckyBox
  4. {
  5. public partial class UI_LuckyBoxNewDressUI
  6. {
  7. public GComponent target;
  8. public GLoader m_loaBg;
  9. public GGraph m_holder_star;
  10. public GGraph m_holder_bg;
  11. public GGraph m_holder_cloud;
  12. public UI_ComCard m_comCard;
  13. public GButton m_btnPass;
  14. public Transition m_t_open;
  15. public Transition m_t_close;
  16. public const string URL = "ui://drx9d1usqdrt19";
  17. public const string PACKAGE_NAME = "LuckyBox";
  18. public const string RES_NAME = "LuckyBoxNewDressUI";
  19. private static UI_LuckyBoxNewDressUI _proxy;
  20. public static UI_LuckyBoxNewDressUI Create(GObject gObject = null)
  21. {
  22. var ui = new UI_LuckyBoxNewDressUI();
  23. if(gObject == null)
  24. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  25. else
  26. ui.target = (GComponent)gObject;
  27. ui.Init(ui.target);
  28. return ui;
  29. }
  30. public static UI_LuckyBoxNewDressUI Proxy(GObject gObject = null)
  31. {
  32. if(_proxy == null)
  33. {
  34. _proxy = new UI_LuckyBoxNewDressUI();
  35. }
  36. var ui = _proxy;
  37. if(gObject == null)
  38. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  39. else
  40. ui.target = (GComponent)gObject;
  41. ui.Init(ui.target);
  42. return ui;
  43. }
  44. public static void ProxyEnd()
  45. {
  46. if (_proxy != null)
  47. {
  48. _proxy.Dispose();
  49. }
  50. }
  51. public static void ClearProxy()
  52. {
  53. ProxyEnd();
  54. _proxy = null;
  55. }
  56. private void Init(GComponent comp)
  57. {
  58. m_loaBg = (GLoader)comp.GetChild("loaBg");
  59. m_holder_star = (GGraph)comp.GetChild("holder_star");
  60. m_holder_bg = (GGraph)comp.GetChild("holder_bg");
  61. m_holder_cloud = (GGraph)comp.GetChild("holder_cloud");
  62. m_comCard = (UI_ComCard)UI_ComCard.Create(comp.GetChild("comCard"));
  63. m_btnPass = (GButton)comp.GetChild("btnPass");
  64. m_t_open = comp.GetTransition("t_open");
  65. m_t_close = comp.GetTransition("t_close");
  66. }
  67. public void Dispose(bool disposeTarget = false)
  68. {
  69. m_loaBg = null;
  70. m_holder_star = null;
  71. m_holder_bg = null;
  72. m_holder_cloud = null;
  73. m_comCard.Dispose();
  74. m_comCard = null;
  75. m_btnPass = null;
  76. m_t_open = null;
  77. m_t_close = null;
  78. if(disposeTarget && target != null)
  79. {
  80. target.RemoveFromParent();
  81. target.Dispose();
  82. }
  83. target = null;
  84. }
  85. }
  86. }