UI_StoryLevelInfoUI.cs 4.5 KB

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