UI_StudioUI.cs 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Studio
  4. {
  5. public partial class UI_StudioUI
  6. {
  7. public GComponent target;
  8. public GLoader m_loaBg;
  9. public GButton m_btnBack;
  10. public GButton m_btnHome;
  11. public UI_ComEctype m_comMetal;
  12. public UI_ComEctype m_comFabric;
  13. public UI_ComEctype m_comProperty;
  14. public UI_ComEctype m_comFiling;
  15. public UI_ComEctype m_comPorcelain;
  16. public const string URL = "ui://xz8kxrecrbxq0";
  17. public const string PACKAGE_NAME = "Studio";
  18. public const string RES_NAME = "StudioUI";
  19. private static UI_StudioUI _proxy;
  20. public static UI_StudioUI Create(GObject gObject = null)
  21. {
  22. var ui = new UI_StudioUI();
  23. if(gObject == null)
  24. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  25. else
  26. ui.target = (GComponent)gObject;
  27. ui.Init(ui.target);
  28. return ui;
  29. }
  30. public static UI_StudioUI Proxy(GObject gObject = null)
  31. {
  32. if(_proxy == null)
  33. {
  34. _proxy = new UI_StudioUI();
  35. }
  36. var ui = _proxy;
  37. if(gObject == null)
  38. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  39. else
  40. ui.target = (GComponent)gObject;
  41. ui.Init(ui.target);
  42. return ui;
  43. }
  44. public static void ProxyEnd()
  45. {
  46. if (_proxy != null)
  47. {
  48. _proxy.Dispose();
  49. }
  50. }
  51. public static void ClearProxy()
  52. {
  53. ProxyEnd();
  54. _proxy = null;
  55. }
  56. private void Init(GComponent comp)
  57. {
  58. m_loaBg = (GLoader)comp.GetChild("loaBg");
  59. m_btnBack = (GButton)comp.GetChild("btnBack");
  60. m_btnHome = (GButton)comp.GetChild("btnHome");
  61. m_comMetal = (UI_ComEctype)UI_ComEctype.Create(comp.GetChild("comMetal"));
  62. m_comFabric = (UI_ComEctype)UI_ComEctype.Create(comp.GetChild("comFabric"));
  63. m_comProperty = (UI_ComEctype)UI_ComEctype.Create(comp.GetChild("comProperty"));
  64. m_comFiling = (UI_ComEctype)UI_ComEctype.Create(comp.GetChild("comFiling"));
  65. m_comPorcelain = (UI_ComEctype)UI_ComEctype.Create(comp.GetChild("comPorcelain"));
  66. }
  67. public void Dispose(bool disposeTarget = false)
  68. {
  69. m_loaBg = null;
  70. m_btnBack = null;
  71. m_btnHome = null;
  72. m_comMetal.Dispose();
  73. m_comMetal = null;
  74. m_comFabric.Dispose();
  75. m_comFabric = null;
  76. m_comProperty.Dispose();
  77. m_comProperty = null;
  78. m_comFiling.Dispose();
  79. m_comFiling = null;
  80. m_comPorcelain.Dispose();
  81. m_comPorcelain = null;
  82. if(disposeTarget && target != null)
  83. {
  84. target.RemoveFromParent();
  85. target.Dispose();
  86. }
  87. target = null;
  88. }
  89. }
  90. }