UI_StoryLevelInfoUI.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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 GLoader m_loaCost;
  18. public GTextField m_txtPowerDesc;
  19. public GTextField m_txtTargetName;
  20. public GButton m_btnFightOnce;
  21. public GButton m_btnFightTimes;
  22. public GGroup m_groupPass;
  23. public GTextField m_txtUnpassTips;
  24. public GGroup m_groupUnpass;
  25. public UI_CompFlower1 m_flower;
  26. public GList m_listBonus;
  27. public GLoader m_scoreType;
  28. public GLoader m_btnGuide;
  29. public const string URL = "ui://mfvz4q8kvxw538";
  30. public const string PACKAGE_NAME = "Main";
  31. public const string RES_NAME = "StoryLevelInfoUI";
  32. private static UI_StoryLevelInfoUI _proxy;
  33. public static UI_StoryLevelInfoUI Create(GObject gObject = null)
  34. {
  35. var ui = new UI_StoryLevelInfoUI();
  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_StoryLevelInfoUI Proxy(GObject gObject = null)
  44. {
  45. if(_proxy == null)
  46. {
  47. _proxy = new UI_StoryLevelInfoUI();
  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_ctrlNeed = comp.GetController("ctrlNeed");
  72. m_btnBg = (GLoader)comp.GetChild("btnBg");
  73. m_btnStart = (GButton)comp.GetChild("btnStart");
  74. m_txtTitle = (GTextField)comp.GetChild("txtTitle");
  75. m_txtHighestScore = (GTextField)comp.GetChild("txtHighestScore");
  76. m_txtNeed = (GRichTextField)comp.GetChild("txtNeed");
  77. m_listTag = (GList)comp.GetChild("listTag");
  78. m_txtLevelDesc = (GTextField)comp.GetChild("txtLevelDesc");
  79. m_loaderHead = (GLoader)comp.GetChild("loaderHead");
  80. m_loaCost = (GLoader)comp.GetChild("loaCost");
  81. m_txtPowerDesc = (GTextField)comp.GetChild("txtPowerDesc");
  82. m_txtTargetName = (GTextField)comp.GetChild("txtTargetName");
  83. m_btnFightOnce = (GButton)comp.GetChild("btnFightOnce");
  84. m_btnFightTimes = (GButton)comp.GetChild("btnFightTimes");
  85. m_groupPass = (GGroup)comp.GetChild("groupPass");
  86. m_txtUnpassTips = (GTextField)comp.GetChild("txtUnpassTips");
  87. m_groupUnpass = (GGroup)comp.GetChild("groupUnpass");
  88. m_flower = (UI_CompFlower1)UI_CompFlower1.Create(comp.GetChild("flower"));
  89. m_listBonus = (GList)comp.GetChild("listBonus");
  90. m_scoreType = (GLoader)comp.GetChild("scoreType");
  91. m_btnGuide = (GLoader)comp.GetChild("btnGuide");
  92. }
  93. public void Dispose(bool disposeTarget = false)
  94. {
  95. m_ctrlNeed = null;
  96. m_btnBg = null;
  97. m_btnStart = null;
  98. m_txtTitle = null;
  99. m_txtHighestScore = null;
  100. m_txtNeed = null;
  101. m_listTag = null;
  102. m_txtLevelDesc = null;
  103. m_loaderHead = null;
  104. m_loaCost = null;
  105. m_txtPowerDesc = null;
  106. m_txtTargetName = null;
  107. m_btnFightOnce = null;
  108. m_btnFightTimes = null;
  109. m_groupPass = null;
  110. m_txtUnpassTips = null;
  111. m_groupUnpass = null;
  112. m_flower.Dispose();
  113. m_flower = null;
  114. m_listBonus = null;
  115. m_scoreType = null;
  116. m_btnGuide = null;
  117. if(disposeTarget && target != null)
  118. {
  119. target.RemoveFromParent();
  120. target.Dispose();
  121. }
  122. target = null;
  123. }
  124. }
  125. }