UI_PoemGalleryUI.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Poem
  4. {
  5. public partial class UI_PoemGalleryUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public GLoader m_loaBg;
  10. public GButton m_btnback;
  11. public UI_ComNormal m_comNormal;
  12. public UI_ComFavorites m_comFavorites;
  13. public GButton m_btnRecover;
  14. public GButton m_btnJoin;
  15. public GButton m_btnFavorites;
  16. public GButton m_guideBtn1;
  17. public GButton m_guideBtn2;
  18. public GButton m_guideBtn3;
  19. public const string URL = "ui://iyz778gkr9ri10u";
  20. public const string PACKAGE_NAME = "Poem";
  21. public const string RES_NAME = "PoemGalleryUI";
  22. private static UI_PoemGalleryUI _proxy;
  23. public static UI_PoemGalleryUI Create(GObject gObject = null)
  24. {
  25. var ui = new UI_PoemGalleryUI();
  26. if(gObject == null)
  27. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  28. else
  29. ui.target = (GComponent)gObject;
  30. ui.Init(ui.target);
  31. return ui;
  32. }
  33. public static UI_PoemGalleryUI Proxy(GObject gObject = null)
  34. {
  35. if(_proxy == null)
  36. {
  37. _proxy = new UI_PoemGalleryUI();
  38. }
  39. var ui = _proxy;
  40. if(gObject == null)
  41. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  42. else
  43. ui.target = (GComponent)gObject;
  44. ui.Init(ui.target);
  45. return ui;
  46. }
  47. public static void ProxyEnd()
  48. {
  49. if (_proxy != null)
  50. {
  51. _proxy.Dispose();
  52. }
  53. }
  54. public static void ClearProxy()
  55. {
  56. ProxyEnd();
  57. _proxy = null;
  58. }
  59. private void Init(GComponent comp)
  60. {
  61. m_c1 = comp.GetController("c1");
  62. m_loaBg = (GLoader)comp.GetChild("loaBg");
  63. m_btnback = (GButton)comp.GetChild("btnback");
  64. m_comNormal = (UI_ComNormal)UI_ComNormal.Create(comp.GetChild("comNormal"));
  65. m_comFavorites = (UI_ComFavorites)UI_ComFavorites.Create(comp.GetChild("comFavorites"));
  66. m_btnRecover = (GButton)comp.GetChild("btnRecover");
  67. m_btnJoin = (GButton)comp.GetChild("btnJoin");
  68. m_btnFavorites = (GButton)comp.GetChild("btnFavorites");
  69. m_guideBtn1 = (GButton)comp.GetChild("guideBtn1");
  70. m_guideBtn2 = (GButton)comp.GetChild("guideBtn2");
  71. m_guideBtn3 = (GButton)comp.GetChild("guideBtn3");
  72. }
  73. public void Dispose(bool disposeTarget = false)
  74. {
  75. m_c1 = null;
  76. m_loaBg = null;
  77. m_btnback = null;
  78. m_comNormal.Dispose();
  79. m_comNormal = null;
  80. m_comFavorites.Dispose();
  81. m_comFavorites = null;
  82. m_btnRecover = null;
  83. m_btnJoin = null;
  84. m_btnFavorites = null;
  85. m_guideBtn1 = null;
  86. m_guideBtn2 = null;
  87. m_guideBtn3 = null;
  88. if(disposeTarget && target != null)
  89. {
  90. target.RemoveFromParent();
  91. target.Dispose();
  92. }
  93. target = null;
  94. }
  95. }
  96. }