UI_StoryChapterUI.cs 4.3 KB

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