UI_StoryLevelInfoUI.cs 4.3 KB

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