UI_StoryChapterUI.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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_StoryChapterUI
  6. {
  7. public GComponent target;
  8. public GLoader m_loaBg;
  9. public GGraph m_bgEffect;
  10. public UI_CompChapter m_chapter;
  11. public GComponent m_valueBar;
  12. public GButton m_btnBack;
  13. public GButton m_btnHome;
  14. public GTextField m_txtChapter;
  15. public GLoader m_txtBg;
  16. public GTextField m_txtChapterName0;
  17. public GTextField m_txtChapterName1;
  18. public GTextField m_txtChapterName2;
  19. public GTextField m_txtChapterName3;
  20. public GTextField m_txtChapterName4;
  21. public GGroup m_selectChapter;
  22. public UI_CompBonusBox m_bonusBox3;
  23. public UI_CompBonusBox m_bonusBox2;
  24. public UI_CompBonusBox m_bonusBox1;
  25. public GTextField m_txtStarCount;
  26. public GGroup m_bonusBox;
  27. public GLoader m_switchChapter;
  28. public GTextField m_ZCJBTimeText;
  29. public GGroup m_ActivityZCJB;
  30. public Transition m_t0;
  31. public const string URL = "ui://mfvz4q8km7n51u";
  32. public const string PACKAGE_NAME = "Main";
  33. public const string RES_NAME = "StoryChapterUI";
  34. private static UI_StoryChapterUI _proxy;
  35. public static UI_StoryChapterUI Create(GObject gObject = null)
  36. {
  37. var ui = new UI_StoryChapterUI();
  38. if(gObject == null)
  39. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  40. else
  41. ui.target = (GComponent)gObject;
  42. ui.Init(ui.target);
  43. return ui;
  44. }
  45. public static UI_StoryChapterUI Proxy(GObject gObject = null)
  46. {
  47. if(_proxy == null)
  48. {
  49. _proxy = new UI_StoryChapterUI();
  50. }
  51. var ui = _proxy;
  52. if(gObject == null)
  53. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  54. else
  55. ui.target = (GComponent)gObject;
  56. ui.Init(ui.target);
  57. return ui;
  58. }
  59. public static void ProxyEnd()
  60. {
  61. if (_proxy != null)
  62. {
  63. _proxy.Dispose();
  64. }
  65. }
  66. public static void ClearProxy()
  67. {
  68. ProxyEnd();
  69. _proxy = null;
  70. }
  71. private void Init(GComponent comp)
  72. {
  73. m_loaBg = (GLoader)comp.GetChild("loaBg");
  74. m_bgEffect = (GGraph)comp.GetChild("bgEffect");
  75. m_chapter = (UI_CompChapter)UI_CompChapter.Create(comp.GetChild("chapter"));
  76. m_valueBar = (GComponent)comp.GetChild("valueBar");
  77. m_btnBack = (GButton)comp.GetChild("btnBack");
  78. m_btnHome = (GButton)comp.GetChild("btnHome");
  79. m_txtChapter = (GTextField)comp.GetChild("txtChapter");
  80. m_txtBg = (GLoader)comp.GetChild("txtBg");
  81. m_txtChapterName0 = (GTextField)comp.GetChild("txtChapterName0");
  82. m_txtChapterName1 = (GTextField)comp.GetChild("txtChapterName1");
  83. m_txtChapterName2 = (GTextField)comp.GetChild("txtChapterName2");
  84. m_txtChapterName3 = (GTextField)comp.GetChild("txtChapterName3");
  85. m_txtChapterName4 = (GTextField)comp.GetChild("txtChapterName4");
  86. m_selectChapter = (GGroup)comp.GetChild("selectChapter");
  87. m_bonusBox3 = (UI_CompBonusBox)UI_CompBonusBox.Create(comp.GetChild("bonusBox3"));
  88. m_bonusBox2 = (UI_CompBonusBox)UI_CompBonusBox.Create(comp.GetChild("bonusBox2"));
  89. m_bonusBox1 = (UI_CompBonusBox)UI_CompBonusBox.Create(comp.GetChild("bonusBox1"));
  90. m_txtStarCount = (GTextField)comp.GetChild("txtStarCount");
  91. m_bonusBox = (GGroup)comp.GetChild("bonusBox");
  92. m_switchChapter = (GLoader)comp.GetChild("switchChapter");
  93. m_ZCJBTimeText = (GTextField)comp.GetChild("ZCJBTimeText");
  94. m_ActivityZCJB = (GGroup)comp.GetChild("ActivityZCJB");
  95. m_t0 = comp.GetTransition("t0");
  96. }
  97. public void Dispose(bool disposeTarget = false)
  98. {
  99. m_loaBg = null;
  100. m_bgEffect = null;
  101. m_chapter.Dispose();
  102. m_chapter = null;
  103. m_valueBar = null;
  104. m_btnBack = null;
  105. m_btnHome = null;
  106. m_txtChapter = null;
  107. m_txtBg = null;
  108. m_txtChapterName0 = null;
  109. m_txtChapterName1 = null;
  110. m_txtChapterName2 = null;
  111. m_txtChapterName3 = null;
  112. m_txtChapterName4 = null;
  113. m_selectChapter = null;
  114. m_bonusBox3.Dispose();
  115. m_bonusBox3 = null;
  116. m_bonusBox2.Dispose();
  117. m_bonusBox2 = null;
  118. m_bonusBox1.Dispose();
  119. m_bonusBox1 = null;
  120. m_txtStarCount = null;
  121. m_bonusBox = null;
  122. m_switchChapter = null;
  123. m_ZCJBTimeText = null;
  124. m_ActivityZCJB = null;
  125. m_t0 = null;
  126. if(disposeTarget && target != null)
  127. {
  128. target.RemoveFromParent();
  129. target.Dispose();
  130. }
  131. target = null;
  132. }
  133. }
  134. }