UI_StoryChapterUI.cs 4.1 KB

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