UI_GameStartUI.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.MiniGame
  4. {
  5. public partial class UI_GameStartUI
  6. {
  7. public GComponent target;
  8. public GLoader m_bg;
  9. public GLoader m_btnBack;
  10. public UI_Component2 m_rewardBtn;
  11. public GLoader m_shopBtn;
  12. public GLoader m_ticket;
  13. public GLoader m_addIconImg;
  14. public GTextField m_ticketNum;
  15. public GLoader m_addIcon;
  16. public GLoader m_game1;
  17. public GGraph m_effectIcon1;
  18. public GGraph m_effectText1;
  19. public GLoader m_tipsOne;
  20. public GLoader m_needIcon1;
  21. public GTextField m_needNum1;
  22. public GLoader m_game2;
  23. public GGraph m_effectIcon2;
  24. public GGraph m_effectText2;
  25. public GLoader m_tipsTwo;
  26. public GLoader m_needIcon2;
  27. public GTextField m_needNum2;
  28. public const string URL = "ui://wgkh30qjlw8c21";
  29. public const string PACKAGE_NAME = "MiniGame";
  30. public const string RES_NAME = "GameStartUI";
  31. private static UI_GameStartUI _proxy;
  32. public static UI_GameStartUI Create(GObject gObject = null)
  33. {
  34. var ui = new UI_GameStartUI();
  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 UI_GameStartUI Proxy(GObject gObject = null)
  43. {
  44. if(_proxy == null)
  45. {
  46. _proxy = new UI_GameStartUI();
  47. }
  48. var ui = _proxy;
  49. if(gObject == null)
  50. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  51. else
  52. ui.target = (GComponent)gObject;
  53. ui.Init(ui.target);
  54. return ui;
  55. }
  56. public static void ProxyEnd()
  57. {
  58. if (_proxy != null)
  59. {
  60. _proxy.Dispose();
  61. }
  62. }
  63. public static void ClearProxy()
  64. {
  65. ProxyEnd();
  66. _proxy = null;
  67. }
  68. private void Init(GComponent comp)
  69. {
  70. m_bg = (GLoader)comp.GetChild("bg");
  71. m_btnBack = (GLoader)comp.GetChild("btnBack");
  72. m_rewardBtn = (UI_Component2)UI_Component2.Create(comp.GetChild("rewardBtn"));
  73. m_shopBtn = (GLoader)comp.GetChild("shopBtn");
  74. m_ticket = (GLoader)comp.GetChild("ticket");
  75. m_addIconImg = (GLoader)comp.GetChild("addIconImg");
  76. m_ticketNum = (GTextField)comp.GetChild("ticketNum");
  77. m_addIcon = (GLoader)comp.GetChild("addIcon");
  78. m_game1 = (GLoader)comp.GetChild("game1");
  79. m_effectIcon1 = (GGraph)comp.GetChild("effectIcon1");
  80. m_effectText1 = (GGraph)comp.GetChild("effectText1");
  81. m_tipsOne = (GLoader)comp.GetChild("tipsOne");
  82. m_needIcon1 = (GLoader)comp.GetChild("needIcon1");
  83. m_needNum1 = (GTextField)comp.GetChild("needNum1");
  84. m_game2 = (GLoader)comp.GetChild("game2");
  85. m_effectIcon2 = (GGraph)comp.GetChild("effectIcon2");
  86. m_effectText2 = (GGraph)comp.GetChild("effectText2");
  87. m_tipsTwo = (GLoader)comp.GetChild("tipsTwo");
  88. m_needIcon2 = (GLoader)comp.GetChild("needIcon2");
  89. m_needNum2 = (GTextField)comp.GetChild("needNum2");
  90. }
  91. public void Dispose(bool disposeTarget = false)
  92. {
  93. m_bg = null;
  94. m_btnBack = null;
  95. m_rewardBtn.Dispose();
  96. m_rewardBtn = null;
  97. m_shopBtn = null;
  98. m_ticket = null;
  99. m_addIconImg = null;
  100. m_ticketNum = null;
  101. m_addIcon = null;
  102. m_game1 = null;
  103. m_effectIcon1 = null;
  104. m_effectText1 = null;
  105. m_tipsOne = null;
  106. m_needIcon1 = null;
  107. m_needNum1 = null;
  108. m_game2 = null;
  109. m_effectIcon2 = null;
  110. m_effectText2 = null;
  111. m_tipsTwo = null;
  112. m_needIcon2 = null;
  113. m_needNum2 = null;
  114. if(disposeTarget && target != null)
  115. {
  116. target.RemoveFromParent();
  117. target.Dispose();
  118. }
  119. target = null;
  120. }
  121. }
  122. }