UI_StoryLevelInfoUI.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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 UI_CompFlower1 m_flower;
  14. public GLoader m_scoreType;
  15. public GRichTextField m_txtNeed;
  16. public GList m_listTag;
  17. public GRichTextField m_txtAddition;
  18. public GTextField m_txtLevelDesc;
  19. public GLoader m_loaderHead;
  20. public GTextField m_txtTargetName;
  21. public GLoader m_loaCost;
  22. public GTextField m_txtPowerDesc;
  23. public GButton m_btnFightOnce;
  24. public GButton m_btnFightTimes;
  25. public GGroup m_groupPass;
  26. public GList m_listBonus;
  27. public GLoader m_btnGuide;
  28. public GTextField m_txtUnpassTips;
  29. public GGroup m_groupUnpass;
  30. public const string URL = "ui://mfvz4q8kvxw538";
  31. public const string PACKAGE_NAME = "Main";
  32. public const string RES_NAME = "StoryLevelInfoUI";
  33. private static UI_StoryLevelInfoUI _proxy;
  34. public static UI_StoryLevelInfoUI Create(GObject gObject = null)
  35. {
  36. var ui = new UI_StoryLevelInfoUI();
  37. if(gObject == null)
  38. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  39. else
  40. ui.target = (GComponent)gObject;
  41. ui.Init(ui.target);
  42. return ui;
  43. }
  44. public static UI_StoryLevelInfoUI Proxy(GObject gObject = null)
  45. {
  46. if(_proxy == null)
  47. {
  48. _proxy = new UI_StoryLevelInfoUI();
  49. }
  50. var ui = _proxy;
  51. if(gObject == null)
  52. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  53. else
  54. ui.target = (GComponent)gObject;
  55. ui.Init(ui.target);
  56. return ui;
  57. }
  58. public static void ProxyEnd()
  59. {
  60. if (_proxy != null)
  61. {
  62. _proxy.Dispose();
  63. }
  64. }
  65. public static void ClearProxy()
  66. {
  67. ProxyEnd();
  68. _proxy = null;
  69. }
  70. private void Init(GComponent comp)
  71. {
  72. m_ctrlNeed = comp.GetController("ctrlNeed");
  73. m_btnBg = (GLoader)comp.GetChild("btnBg");
  74. m_btnStart = (GButton)comp.GetChild("btnStart");
  75. m_txtTitle = (GTextField)comp.GetChild("txtTitle");
  76. m_txtHighestScore = (GTextField)comp.GetChild("txtHighestScore");
  77. m_flower = (UI_CompFlower1)UI_CompFlower1.Create(comp.GetChild("flower"));
  78. m_scoreType = (GLoader)comp.GetChild("scoreType");
  79. m_txtNeed = (GRichTextField)comp.GetChild("txtNeed");
  80. m_listTag = (GList)comp.GetChild("listTag");
  81. m_txtAddition = (GRichTextField)comp.GetChild("txtAddition");
  82. m_txtLevelDesc = (GTextField)comp.GetChild("txtLevelDesc");
  83. m_loaderHead = (GLoader)comp.GetChild("loaderHead");
  84. m_txtTargetName = (GTextField)comp.GetChild("txtTargetName");
  85. m_loaCost = (GLoader)comp.GetChild("loaCost");
  86. m_txtPowerDesc = (GTextField)comp.GetChild("txtPowerDesc");
  87. m_btnFightOnce = (GButton)comp.GetChild("btnFightOnce");
  88. m_btnFightTimes = (GButton)comp.GetChild("btnFightTimes");
  89. m_groupPass = (GGroup)comp.GetChild("groupPass");
  90. m_listBonus = (GList)comp.GetChild("listBonus");
  91. m_btnGuide = (GLoader)comp.GetChild("btnGuide");
  92. m_txtUnpassTips = (GTextField)comp.GetChild("txtUnpassTips");
  93. m_groupUnpass = (GGroup)comp.GetChild("groupUnpass");
  94. }
  95. public void Dispose(bool disposeTarget = false)
  96. {
  97. m_ctrlNeed = null;
  98. m_btnBg = null;
  99. m_btnStart = null;
  100. m_txtTitle = null;
  101. m_txtHighestScore = null;
  102. m_flower.Dispose();
  103. m_flower = null;
  104. m_scoreType = null;
  105. m_txtNeed = null;
  106. m_listTag = null;
  107. m_txtAddition = null;
  108. m_txtLevelDesc = null;
  109. m_loaderHead = null;
  110. m_txtTargetName = null;
  111. m_loaCost = null;
  112. m_txtPowerDesc = null;
  113. m_btnFightOnce = null;
  114. m_btnFightTimes = null;
  115. m_groupPass = null;
  116. m_listBonus = null;
  117. m_btnGuide = null;
  118. m_txtUnpassTips = null;
  119. m_groupUnpass = null;
  120. if(disposeTarget && target != null)
  121. {
  122. target.RemoveFromParent();
  123. target.Dispose();
  124. }
  125. target = null;
  126. }
  127. }
  128. }