UI_GameStartUI.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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 GTextField m_descText;
  29. public const string URL = "ui://wgkh30qjlw8c21";
  30. public const string PACKAGE_NAME = "MiniGame";
  31. public const string RES_NAME = "GameStartUI";
  32. private static UI_GameStartUI _proxy;
  33. public static UI_GameStartUI Create(GObject gObject = null)
  34. {
  35. var ui = new UI_GameStartUI();
  36. if(gObject == null)
  37. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  38. else
  39. ui.target = (GComponent)gObject;
  40. ui.Init(ui.target);
  41. return ui;
  42. }
  43. public static UI_GameStartUI Proxy(GObject gObject = null)
  44. {
  45. if(_proxy == null)
  46. {
  47. _proxy = new UI_GameStartUI();
  48. }
  49. var ui = _proxy;
  50. if(gObject == null)
  51. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  52. else
  53. ui.target = (GComponent)gObject;
  54. ui.Init(ui.target);
  55. return ui;
  56. }
  57. public static void ProxyEnd()
  58. {
  59. if (_proxy != null)
  60. {
  61. _proxy.Dispose();
  62. }
  63. }
  64. public static void ClearProxy()
  65. {
  66. ProxyEnd();
  67. _proxy = null;
  68. }
  69. private void Init(GComponent comp)
  70. {
  71. m_bg = (GLoader)comp.GetChild("bg");
  72. m_btnBack = (GLoader)comp.GetChild("btnBack");
  73. m_rewardBtn = (UI_Component2)UI_Component2.Create(comp.GetChild("rewardBtn"));
  74. m_shopBtn = (GLoader)comp.GetChild("shopBtn");
  75. m_ticket = (GLoader)comp.GetChild("ticket");
  76. m_addIconImg = (GLoader)comp.GetChild("addIconImg");
  77. m_ticketNum = (GTextField)comp.GetChild("ticketNum");
  78. m_addIcon = (GLoader)comp.GetChild("addIcon");
  79. m_game1 = (GLoader)comp.GetChild("game1");
  80. m_effectIcon1 = (GGraph)comp.GetChild("effectIcon1");
  81. m_effectText1 = (GGraph)comp.GetChild("effectText1");
  82. m_tipsOne = (GLoader)comp.GetChild("tipsOne");
  83. m_needIcon1 = (GLoader)comp.GetChild("needIcon1");
  84. m_needNum1 = (GTextField)comp.GetChild("needNum1");
  85. m_game2 = (GLoader)comp.GetChild("game2");
  86. m_effectIcon2 = (GGraph)comp.GetChild("effectIcon2");
  87. m_effectText2 = (GGraph)comp.GetChild("effectText2");
  88. m_tipsTwo = (GLoader)comp.GetChild("tipsTwo");
  89. m_needIcon2 = (GLoader)comp.GetChild("needIcon2");
  90. m_needNum2 = (GTextField)comp.GetChild("needNum2");
  91. m_descText = (GTextField)comp.GetChild("descText");
  92. }
  93. public void Dispose(bool disposeTarget = false)
  94. {
  95. m_bg = null;
  96. m_btnBack = null;
  97. m_rewardBtn.Dispose();
  98. m_rewardBtn = null;
  99. m_shopBtn = null;
  100. m_ticket = null;
  101. m_addIconImg = null;
  102. m_ticketNum = null;
  103. m_addIcon = null;
  104. m_game1 = null;
  105. m_effectIcon1 = null;
  106. m_effectText1 = null;
  107. m_tipsOne = null;
  108. m_needIcon1 = null;
  109. m_needNum1 = null;
  110. m_game2 = null;
  111. m_effectIcon2 = null;
  112. m_effectText2 = null;
  113. m_tipsTwo = null;
  114. m_needIcon2 = null;
  115. m_needNum2 = null;
  116. m_descText = null;
  117. if(disposeTarget && target != null)
  118. {
  119. target.RemoveFromParent();
  120. target.Dispose();
  121. }
  122. target = null;
  123. }
  124. }
  125. }