UI_TZFEGameView.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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_TZFEGameView
  6. {
  7. public GComponent target;
  8. public GLoader m_bg;
  9. public GList m_numList;
  10. public GLoader m_backBtn;
  11. public GTextField m_score;
  12. public GGraph m_effectTitle;
  13. public GImage m_title;
  14. public GLoader m_star3;
  15. public GLoader m_star2;
  16. public GLoader m_star1;
  17. public GLoader m_target;
  18. public GTextField m_time;
  19. public GTextField m_timeNum;
  20. public GLoader m_mergeBtn;
  21. public const string URL = "ui://wgkh30qjjmg19";
  22. public const string PACKAGE_NAME = "MiniGame";
  23. public const string RES_NAME = "TZFEGameView";
  24. private static UI_TZFEGameView _proxy;
  25. public static UI_TZFEGameView Create(GObject gObject = null)
  26. {
  27. var ui = new UI_TZFEGameView();
  28. if(gObject == null)
  29. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  30. else
  31. ui.target = (GComponent)gObject;
  32. ui.Init(ui.target);
  33. return ui;
  34. }
  35. public static UI_TZFEGameView Proxy(GObject gObject = null)
  36. {
  37. if(_proxy == null)
  38. {
  39. _proxy = new UI_TZFEGameView();
  40. }
  41. var ui = _proxy;
  42. if(gObject == null)
  43. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  44. else
  45. ui.target = (GComponent)gObject;
  46. ui.Init(ui.target);
  47. return ui;
  48. }
  49. public static void ProxyEnd()
  50. {
  51. if (_proxy != null)
  52. {
  53. _proxy.Dispose();
  54. }
  55. }
  56. public static void ClearProxy()
  57. {
  58. ProxyEnd();
  59. _proxy = null;
  60. }
  61. private void Init(GComponent comp)
  62. {
  63. m_bg = (GLoader)comp.GetChild("bg");
  64. m_numList = (GList)comp.GetChild("numList");
  65. m_backBtn = (GLoader)comp.GetChild("backBtn");
  66. m_score = (GTextField)comp.GetChild("score");
  67. m_effectTitle = (GGraph)comp.GetChild("effectTitle");
  68. m_title = (GImage)comp.GetChild("title");
  69. m_star3 = (GLoader)comp.GetChild("star3");
  70. m_star2 = (GLoader)comp.GetChild("star2");
  71. m_star1 = (GLoader)comp.GetChild("star1");
  72. m_target = (GLoader)comp.GetChild("target");
  73. m_time = (GTextField)comp.GetChild("time");
  74. m_timeNum = (GTextField)comp.GetChild("timeNum");
  75. m_mergeBtn = (GLoader)comp.GetChild("mergeBtn");
  76. }
  77. public void Dispose(bool disposeTarget = false)
  78. {
  79. m_bg = null;
  80. m_numList = null;
  81. m_backBtn = null;
  82. m_score = null;
  83. m_effectTitle = null;
  84. m_title = null;
  85. m_star3 = null;
  86. m_star2 = null;
  87. m_star1 = null;
  88. m_target = null;
  89. m_time = null;
  90. m_timeNum = null;
  91. m_mergeBtn = null;
  92. if(disposeTarget && target != null)
  93. {
  94. target.RemoveFromParent();
  95. target.Dispose();
  96. }
  97. target = null;
  98. }
  99. }
  100. }