UI_StoryChapterUI.cs 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 GComponent m_chapter;
  9. public GComponent m_valueBar;
  10. public GButton m_btnBack;
  11. public GButton m_btnHome;
  12. public GTextField m_txtStarCount;
  13. public UI_CompBonusBox m_bonusBox3;
  14. public UI_CompBonusBox m_bonusBox2;
  15. public UI_CompBonusBox m_bonusBox1;
  16. public GTextField m_txtChapterName;
  17. public const string URL = "ui://mfvz4q8km7n51u";
  18. public const string PACKAGE_NAME = "Main";
  19. public const string RES_NAME = "StoryChapterUI";
  20. private static UI_StoryChapterUI _proxy;
  21. public static UI_StoryChapterUI Create(GObject gObject = null)
  22. {
  23. var ui = new UI_StoryChapterUI();
  24. if(gObject == null)
  25. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  26. else
  27. ui.target = (GComponent)gObject;
  28. ui.Init(ui.target);
  29. return ui;
  30. }
  31. public static UI_StoryChapterUI Proxy(GObject gObject = null)
  32. {
  33. if(_proxy == null)
  34. {
  35. _proxy = new UI_StoryChapterUI();
  36. }
  37. var ui = _proxy;
  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 void ProxyEnd()
  46. {
  47. if (_proxy != null)
  48. {
  49. _proxy.Dispose();
  50. }
  51. }
  52. public static void ClearProxy()
  53. {
  54. ProxyEnd();
  55. _proxy = null;
  56. }
  57. private void Init(GComponent comp)
  58. {
  59. m_chapter = (GComponent)comp.GetChild("chapter");
  60. m_valueBar = (GComponent)comp.GetChild("valueBar");
  61. m_btnBack = (GButton)comp.GetChild("btnBack");
  62. m_btnHome = (GButton)comp.GetChild("btnHome");
  63. m_txtStarCount = (GTextField)comp.GetChild("txtStarCount");
  64. m_bonusBox3 = (UI_CompBonusBox)UI_CompBonusBox.Create(comp.GetChild("bonusBox3"));
  65. m_bonusBox2 = (UI_CompBonusBox)UI_CompBonusBox.Create(comp.GetChild("bonusBox2"));
  66. m_bonusBox1 = (UI_CompBonusBox)UI_CompBonusBox.Create(comp.GetChild("bonusBox1"));
  67. m_txtChapterName = (GTextField)comp.GetChild("txtChapterName");
  68. }
  69. public void Dispose(bool disposeTarget = false)
  70. {
  71. m_chapter = null;
  72. m_valueBar = null;
  73. m_btnBack = null;
  74. m_btnHome = null;
  75. m_txtStarCount = null;
  76. m_bonusBox3.Dispose();
  77. m_bonusBox3 = null;
  78. m_bonusBox2.Dispose();
  79. m_bonusBox2 = null;
  80. m_bonusBox1.Dispose();
  81. m_bonusBox1 = null;
  82. m_txtChapterName = null;
  83. if(disposeTarget && target != null)
  84. {
  85. target.RemoveFromParent();
  86. target.Dispose();
  87. }
  88. target = null;
  89. }
  90. }
  91. }