UI_PoemUI.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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_PoemUI
  6. {
  7. public GComponent target;
  8. public GLoader m_loaBg;
  9. public GButton m_btnback;
  10. public UI_Button15 m_comphoto;
  11. public UI_Button15 m_comGallery;
  12. public UI_Button15 m_TimeTracing;
  13. public const string URL = "ui://iyz778gkv4820";
  14. public const string PACKAGE_NAME = "Poem";
  15. public const string RES_NAME = "PoemUI";
  16. private static UI_PoemUI _proxy;
  17. public static UI_PoemUI Create(GObject gObject = null)
  18. {
  19. var ui = new UI_PoemUI();
  20. if(gObject == null)
  21. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  22. else
  23. ui.target = (GComponent)gObject;
  24. ui.Init(ui.target);
  25. return ui;
  26. }
  27. public static UI_PoemUI Proxy(GObject gObject = null)
  28. {
  29. if(_proxy == null)
  30. {
  31. _proxy = new UI_PoemUI();
  32. }
  33. var ui = _proxy;
  34. if(gObject == null)
  35. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  36. else
  37. ui.target = (GComponent)gObject;
  38. ui.Init(ui.target);
  39. return ui;
  40. }
  41. public static void ProxyEnd()
  42. {
  43. if (_proxy != null)
  44. {
  45. _proxy.Dispose();
  46. }
  47. }
  48. public static void ClearProxy()
  49. {
  50. ProxyEnd();
  51. _proxy = null;
  52. }
  53. private void Init(GComponent comp)
  54. {
  55. m_loaBg = (GLoader)comp.GetChild("loaBg");
  56. m_btnback = (GButton)comp.GetChild("btnback");
  57. m_comphoto = (UI_Button15)UI_Button15.Create(comp.GetChild("comphoto"));
  58. m_comGallery = (UI_Button15)UI_Button15.Create(comp.GetChild("comGallery"));
  59. m_TimeTracing = (UI_Button15)UI_Button15.Create(comp.GetChild("TimeTracing"));
  60. }
  61. public void Dispose(bool disposeTarget = false)
  62. {
  63. m_loaBg = null;
  64. m_btnback = null;
  65. m_comphoto.Dispose();
  66. m_comphoto = null;
  67. m_comGallery.Dispose();
  68. m_comGallery = null;
  69. m_TimeTracing.Dispose();
  70. m_TimeTracing = null;
  71. if(disposeTarget && target != null)
  72. {
  73. target.RemoveFromParent();
  74. target.Dispose();
  75. }
  76. target = null;
  77. }
  78. }
  79. }