UI_CardFosterUI.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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 GLoader m_loaGuide;
  17. public GButton m_btnLeft;
  18. public GButton m_btnRight;
  19. public GGraph m_touchLayer;
  20. public Transition m_t0;
  21. public Transition m_t1;
  22. public Transition m_open;
  23. public const string URL = "ui://7l6lvkayojlzj";
  24. public const string PACKAGE_NAME = "Card";
  25. public const string RES_NAME = "CardFosterUI";
  26. private static UI_CardFosterUI _proxy;
  27. public static UI_CardFosterUI Create(GObject gObject = null)
  28. {
  29. var ui = new UI_CardFosterUI();
  30. if(gObject == null)
  31. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  32. else
  33. ui.target = (GComponent)gObject;
  34. ui.Init(ui.target);
  35. return ui;
  36. }
  37. public static UI_CardFosterUI Proxy(GObject gObject = null)
  38. {
  39. if(_proxy == null)
  40. {
  41. _proxy = new UI_CardFosterUI();
  42. }
  43. var ui = _proxy;
  44. if(gObject == null)
  45. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  46. else
  47. ui.target = (GComponent)gObject;
  48. ui.Init(ui.target);
  49. return ui;
  50. }
  51. public static void ProxyEnd()
  52. {
  53. if (_proxy != null)
  54. {
  55. _proxy.Dispose();
  56. }
  57. }
  58. public static void ClearProxy()
  59. {
  60. ProxyEnd();
  61. _proxy = null;
  62. }
  63. private void Init(GComponent comp)
  64. {
  65. m_c1 = comp.GetController("c1");
  66. m_loaBg = (GLoader)comp.GetChild("loaBg");
  67. m_comImgCard = (UI_ComImgCard)UI_ComImgCard.Create(comp.GetChild("comImgCard"));
  68. m_comCard = (UI_ComCardObj)UI_ComCardObj.Create(comp.GetChild("comCard"));
  69. m_loaListener = (GLoader)comp.GetChild("loaListener");
  70. m_loaListener1 = (GLoader)comp.GetChild("loaListener1");
  71. m_ComFosterTop = (UI_ComFosterTop)UI_ComFosterTop.Create(comp.GetChild("ComFosterTop"));
  72. m_ComFosterBottom = (UI_ComFosterBottom)UI_ComFosterBottom.Create(comp.GetChild("ComFosterBottom"));
  73. m_loaGuide = (GLoader)comp.GetChild("loaGuide");
  74. m_btnLeft = (GButton)comp.GetChild("btnLeft");
  75. m_btnRight = (GButton)comp.GetChild("btnRight");
  76. m_touchLayer = (GGraph)comp.GetChild("touchLayer");
  77. m_t0 = comp.GetTransition("t0");
  78. m_t1 = comp.GetTransition("t1");
  79. m_open = comp.GetTransition("open");
  80. }
  81. public void Dispose(bool disposeTarget = false)
  82. {
  83. m_c1 = null;
  84. m_loaBg = null;
  85. m_comImgCard.Dispose();
  86. m_comImgCard = null;
  87. m_comCard.Dispose();
  88. m_comCard = null;
  89. m_loaListener = null;
  90. m_loaListener1 = null;
  91. m_ComFosterTop.Dispose();
  92. m_ComFosterTop = null;
  93. m_ComFosterBottom.Dispose();
  94. m_ComFosterBottom = null;
  95. m_loaGuide = null;
  96. m_btnLeft = null;
  97. m_btnRight = null;
  98. m_touchLayer = null;
  99. m_t0 = null;
  100. m_t1 = null;
  101. m_open = null;
  102. if(disposeTarget && target != null)
  103. {
  104. target.RemoveFromParent();
  105. target.Dispose();
  106. }
  107. target = null;
  108. }
  109. }
  110. }