UI_PoemUI.cs 2.2 KB

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