UI_CardFosterUI.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Card
  4. {
  5. public partial class UI_CardFosterUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public GLoader m_loaBg;
  10. public UI_ComImgCard m_comImgCard;
  11. public UI_ComCardObj m_comCard;
  12. public GLoader m_loaListener;
  13. public GLoader m_loaListener1;
  14. public UI_ComFosterTop m_ComFosterTop;
  15. public UI_ComFosterBottom m_ComFosterBottom;
  16. public GButton m_cardSyntheticBtn;
  17. public GLoader m_loaGuide;
  18. public GButton m_btnLeft;
  19. public GButton m_btnRight;
  20. public GGraph m_touchLayer;
  21. public Transition m_t0;
  22. public Transition m_t1;
  23. public Transition m_open;
  24. public const string URL = "ui://7l6lvkayojlzj";
  25. public const string PACKAGE_NAME = "Card";
  26. public const string RES_NAME = "CardFosterUI";
  27. private static UI_CardFosterUI _proxy;
  28. public static UI_CardFosterUI Create(GObject gObject = null)
  29. {
  30. var ui = new UI_CardFosterUI();
  31. if(gObject == null)
  32. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  33. else
  34. ui.target = (GComponent)gObject;
  35. ui.Init(ui.target);
  36. return ui;
  37. }
  38. public static UI_CardFosterUI Proxy(GObject gObject = null)
  39. {
  40. if(_proxy == null)
  41. {
  42. _proxy = new UI_CardFosterUI();
  43. }
  44. var ui = _proxy;
  45. if(gObject == null)
  46. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  47. else
  48. ui.target = (GComponent)gObject;
  49. ui.Init(ui.target);
  50. return ui;
  51. }
  52. public static void ProxyEnd()
  53. {
  54. if (_proxy != null)
  55. {
  56. _proxy.Dispose();
  57. }
  58. }
  59. public static void ClearProxy()
  60. {
  61. ProxyEnd();
  62. _proxy = null;
  63. }
  64. private void Init(GComponent comp)
  65. {
  66. m_c1 = comp.GetController("c1");
  67. m_loaBg = (GLoader)comp.GetChild("loaBg");
  68. m_comImgCard = (UI_ComImgCard)UI_ComImgCard.Create(comp.GetChild("comImgCard"));
  69. m_comCard = (UI_ComCardObj)UI_ComCardObj.Create(comp.GetChild("comCard"));
  70. m_loaListener = (GLoader)comp.GetChild("loaListener");
  71. m_loaListener1 = (GLoader)comp.GetChild("loaListener1");
  72. m_ComFosterTop = (UI_ComFosterTop)UI_ComFosterTop.Create(comp.GetChild("ComFosterTop"));
  73. m_ComFosterBottom = (UI_ComFosterBottom)UI_ComFosterBottom.Create(comp.GetChild("ComFosterBottom"));
  74. m_cardSyntheticBtn = (GButton)comp.GetChild("cardSyntheticBtn");
  75. m_loaGuide = (GLoader)comp.GetChild("loaGuide");
  76. m_btnLeft = (GButton)comp.GetChild("btnLeft");
  77. m_btnRight = (GButton)comp.GetChild("btnRight");
  78. m_touchLayer = (GGraph)comp.GetChild("touchLayer");
  79. m_t0 = comp.GetTransition("t0");
  80. m_t1 = comp.GetTransition("t1");
  81. m_open = comp.GetTransition("open");
  82. }
  83. public void Dispose(bool disposeTarget = false)
  84. {
  85. m_c1 = null;
  86. m_loaBg = null;
  87. m_comImgCard.Dispose();
  88. m_comImgCard = null;
  89. m_comCard.Dispose();
  90. m_comCard = null;
  91. m_loaListener = null;
  92. m_loaListener1 = null;
  93. m_ComFosterTop.Dispose();
  94. m_ComFosterTop = null;
  95. m_ComFosterBottom.Dispose();
  96. m_ComFosterBottom = null;
  97. m_cardSyntheticBtn = null;
  98. m_loaGuide = null;
  99. m_btnLeft = null;
  100. m_btnRight = null;
  101. m_touchLayer = null;
  102. m_t0 = null;
  103. m_t1 = null;
  104. m_open = null;
  105. if(disposeTarget && target != null)
  106. {
  107. target.RemoveFromParent();
  108. target.Dispose();
  109. }
  110. target = null;
  111. }
  112. }
  113. }