UI_PoemUI.cs 2.4 KB

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