UI_StoryLevelInfoUI.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Main
  4. {
  5. public partial class UI_StoryLevelInfoUI
  6. {
  7. public GComponent target;
  8. public Controller m_ctrlNeed;
  9. public GLoader m_btnBg;
  10. public GButton m_btnStart;
  11. public GTextField m_txtTitle;
  12. public GTextField m_txtHighestScore;
  13. public GRichTextField m_txtNeed;
  14. public GList m_listTag;
  15. public GTextField m_txtLevelDesc;
  16. public GLoader m_loaderHead;
  17. public GTextField m_txtPowerDesc;
  18. public GTextField m_txtTargetName;
  19. public GButton m_btnFightOnce;
  20. public GButton m_btnFightTimes;
  21. public GGroup m_groupPass;
  22. public GTextField m_txtUnpassTips;
  23. public GGroup m_groupUnpass;
  24. public UI_CompFlower1 m_flower;
  25. public GList m_listBonus;
  26. public GLoader m_scoreType;
  27. public const string URL = "ui://mfvz4q8kvxw538";
  28. public const string PACKAGE_NAME = "Main";
  29. public const string RES_NAME = "StoryLevelInfoUI";
  30. private static UI_StoryLevelInfoUI _proxy;
  31. public static UI_StoryLevelInfoUI Create(GObject gObject = null)
  32. {
  33. var ui = new UI_StoryLevelInfoUI();
  34. if(gObject == null)
  35. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  36. else
  37. ui.target = (GComponent)gObject;
  38. ui.Init(ui.target);
  39. return ui;
  40. }
  41. public static UI_StoryLevelInfoUI Proxy(GObject gObject = null)
  42. {
  43. if(_proxy == null)
  44. {
  45. _proxy = new UI_StoryLevelInfoUI();
  46. }
  47. var ui = _proxy;
  48. if(gObject == null)
  49. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  50. else
  51. ui.target = (GComponent)gObject;
  52. ui.Init(ui.target);
  53. return ui;
  54. }
  55. public static void ProxyEnd()
  56. {
  57. if (_proxy != null)
  58. {
  59. _proxy.Dispose();
  60. }
  61. }
  62. public static void ClearProxy()
  63. {
  64. ProxyEnd();
  65. _proxy = null;
  66. }
  67. private void Init(GComponent comp)
  68. {
  69. m_ctrlNeed = comp.GetController("ctrlNeed");
  70. m_btnBg = (GLoader)comp.GetChild("btnBg");
  71. m_btnStart = (GButton)comp.GetChild("btnStart");
  72. m_txtTitle = (GTextField)comp.GetChild("txtTitle");
  73. m_txtHighestScore = (GTextField)comp.GetChild("txtHighestScore");
  74. m_txtNeed = (GRichTextField)comp.GetChild("txtNeed");
  75. m_listTag = (GList)comp.GetChild("listTag");
  76. m_txtLevelDesc = (GTextField)comp.GetChild("txtLevelDesc");
  77. m_loaderHead = (GLoader)comp.GetChild("loaderHead");
  78. m_txtPowerDesc = (GTextField)comp.GetChild("txtPowerDesc");
  79. m_txtTargetName = (GTextField)comp.GetChild("txtTargetName");
  80. m_btnFightOnce = (GButton)comp.GetChild("btnFightOnce");
  81. m_btnFightTimes = (GButton)comp.GetChild("btnFightTimes");
  82. m_groupPass = (GGroup)comp.GetChild("groupPass");
  83. m_txtUnpassTips = (GTextField)comp.GetChild("txtUnpassTips");
  84. m_groupUnpass = (GGroup)comp.GetChild("groupUnpass");
  85. m_flower = (UI_CompFlower1)UI_CompFlower1.Create(comp.GetChild("flower"));
  86. m_listBonus = (GList)comp.GetChild("listBonus");
  87. m_scoreType = (GLoader)comp.GetChild("scoreType");
  88. }
  89. public void Dispose(bool disposeTarget = false)
  90. {
  91. m_ctrlNeed = null;
  92. m_btnBg = null;
  93. m_btnStart = null;
  94. m_txtTitle = null;
  95. m_txtHighestScore = null;
  96. m_txtNeed = null;
  97. m_listTag = null;
  98. m_txtLevelDesc = null;
  99. m_loaderHead = null;
  100. m_txtPowerDesc = null;
  101. m_txtTargetName = null;
  102. m_btnFightOnce = null;
  103. m_btnFightTimes = null;
  104. m_groupPass = null;
  105. m_txtUnpassTips = null;
  106. m_groupUnpass = null;
  107. m_flower.Dispose();
  108. m_flower = null;
  109. m_listBonus = null;
  110. m_scoreType = null;
  111. if(disposeTarget && target != null)
  112. {
  113. target.RemoveFromParent();
  114. target.Dispose();
  115. }
  116. target = null;
  117. }
  118. }
  119. }