UI_StoryChapterUI.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 UI_CompBonusBox m_bonusBox3;
  22. public UI_CompBonusBox m_bonusBox2;
  23. public UI_CompBonusBox m_bonusBox1;
  24. public GTextField m_txtStarCount;
  25. public GLoader m_switchChapter;
  26. public const string URL = "ui://mfvz4q8km7n51u";
  27. public const string PACKAGE_NAME = "Main";
  28. public const string RES_NAME = "StoryChapterUI";
  29. private static UI_StoryChapterUI _proxy;
  30. public static UI_StoryChapterUI Create(GObject gObject = null)
  31. {
  32. var ui = new UI_StoryChapterUI();
  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_StoryChapterUI Proxy(GObject gObject = null)
  41. {
  42. if(_proxy == null)
  43. {
  44. _proxy = new UI_StoryChapterUI();
  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_loaBg = (GLoader)comp.GetChild("loaBg");
  69. m_bgEffect = (GGraph)comp.GetChild("bgEffect");
  70. m_chapter = (UI_CompChapter)UI_CompChapter.Create(comp.GetChild("chapter"));
  71. m_valueBar = (GComponent)comp.GetChild("valueBar");
  72. m_btnBack = (GButton)comp.GetChild("btnBack");
  73. m_btnHome = (GButton)comp.GetChild("btnHome");
  74. m_txtChapter = (GTextField)comp.GetChild("txtChapter");
  75. m_txtBg = (GLoader)comp.GetChild("txtBg");
  76. m_txtChapterName0 = (GTextField)comp.GetChild("txtChapterName0");
  77. m_txtChapterName1 = (GTextField)comp.GetChild("txtChapterName1");
  78. m_txtChapterName2 = (GTextField)comp.GetChild("txtChapterName2");
  79. m_txtChapterName3 = (GTextField)comp.GetChild("txtChapterName3");
  80. m_txtChapterName4 = (GTextField)comp.GetChild("txtChapterName4");
  81. m_bonusBox3 = (UI_CompBonusBox)UI_CompBonusBox.Create(comp.GetChild("bonusBox3"));
  82. m_bonusBox2 = (UI_CompBonusBox)UI_CompBonusBox.Create(comp.GetChild("bonusBox2"));
  83. m_bonusBox1 = (UI_CompBonusBox)UI_CompBonusBox.Create(comp.GetChild("bonusBox1"));
  84. m_txtStarCount = (GTextField)comp.GetChild("txtStarCount");
  85. m_switchChapter = (GLoader)comp.GetChild("switchChapter");
  86. }
  87. public void Dispose(bool disposeTarget = false)
  88. {
  89. m_loaBg = null;
  90. m_bgEffect = null;
  91. m_chapter.Dispose();
  92. m_chapter = null;
  93. m_valueBar = null;
  94. m_btnBack = null;
  95. m_btnHome = null;
  96. m_txtChapter = null;
  97. m_txtBg = null;
  98. m_txtChapterName0 = null;
  99. m_txtChapterName1 = null;
  100. m_txtChapterName2 = null;
  101. m_txtChapterName3 = null;
  102. m_txtChapterName4 = null;
  103. m_bonusBox3.Dispose();
  104. m_bonusBox3 = null;
  105. m_bonusBox2.Dispose();
  106. m_bonusBox2 = null;
  107. m_bonusBox1.Dispose();
  108. m_bonusBox1 = null;
  109. m_txtStarCount = null;
  110. m_switchChapter = null;
  111. if(disposeTarget && target != null)
  112. {
  113. target.RemoveFromParent();
  114. target.Dispose();
  115. }
  116. target = null;
  117. }
  118. }
  119. }