UI_GuideUI.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Guide
  4. {
  5. public partial class UI_GuideUI
  6. {
  7. public GComponent target;
  8. public UI_Component2 m_mask;
  9. public UI_Component3 m_rectFrame;
  10. public UI_Component1 m_compTxt;
  11. public GImage m_rectFrameTemp;
  12. public UI_ComHolder m_comHolder;
  13. public const string URL = "ui://vxxz0ya7rpol4";
  14. public const string PACKAGE_NAME = "Guide";
  15. public const string RES_NAME = "GuideUI";
  16. private static UI_GuideUI _proxy;
  17. public static UI_GuideUI Create(GObject gObject = null)
  18. {
  19. var ui = new UI_GuideUI();
  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_GuideUI Proxy(GObject gObject = null)
  28. {
  29. if(_proxy == null)
  30. {
  31. _proxy = new UI_GuideUI();
  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_mask = (UI_Component2)UI_Component2.Create(comp.GetChild("mask"));
  56. m_rectFrame = (UI_Component3)UI_Component3.Create(comp.GetChild("rectFrame"));
  57. m_compTxt = (UI_Component1)UI_Component1.Create(comp.GetChild("compTxt"));
  58. m_rectFrameTemp = (GImage)comp.GetChild("rectFrameTemp");
  59. m_comHolder = (UI_ComHolder)UI_ComHolder.Create(comp.GetChild("comHolder"));
  60. }
  61. public void Dispose(bool disposeTarget = false)
  62. {
  63. m_mask.Dispose();
  64. m_mask = null;
  65. m_rectFrame.Dispose();
  66. m_rectFrame = null;
  67. m_compTxt.Dispose();
  68. m_compTxt = null;
  69. m_rectFrameTemp = null;
  70. m_comHolder.Dispose();
  71. m_comHolder = null;
  72. if(disposeTarget && target != null)
  73. {
  74. target.RemoveFromParent();
  75. target.Dispose();
  76. }
  77. target = null;
  78. }
  79. }
  80. }