UI_StudioUI.cs 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 UI_ComEctype m_comMetal;
  11. public UI_ComEctype m_comFabric;
  12. public UI_ComEctype m_comProperty;
  13. public UI_ComEctype m_comFiling;
  14. public UI_ComEctype m_comPorcelain;
  15. public const string URL = "ui://xz8kxrecrbxq0";
  16. public const string PACKAGE_NAME = "Studio";
  17. public const string RES_NAME = "StudioUI";
  18. private static UI_StudioUI _proxy;
  19. public static UI_StudioUI Create(GObject gObject = null)
  20. {
  21. var ui = new UI_StudioUI();
  22. if(gObject == null)
  23. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  24. else
  25. ui.target = (GComponent)gObject;
  26. ui.Init(ui.target);
  27. return ui;
  28. }
  29. public static UI_StudioUI Proxy(GObject gObject = null)
  30. {
  31. if(_proxy == null)
  32. {
  33. _proxy = new UI_StudioUI();
  34. }
  35. var ui = _proxy;
  36. if(gObject == null)
  37. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  38. else
  39. ui.target = (GComponent)gObject;
  40. ui.Init(ui.target);
  41. return ui;
  42. }
  43. public static void ProxyEnd()
  44. {
  45. if (_proxy != null)
  46. {
  47. _proxy.Dispose();
  48. }
  49. }
  50. public static void ClearProxy()
  51. {
  52. ProxyEnd();
  53. _proxy = null;
  54. }
  55. private void Init(GComponent comp)
  56. {
  57. m_loaBg = (GLoader)comp.GetChild("loaBg");
  58. m_btnBack = (GButton)comp.GetChild("btnBack");
  59. m_comMetal = (UI_ComEctype)UI_ComEctype.Create(comp.GetChild("comMetal"));
  60. m_comFabric = (UI_ComEctype)UI_ComEctype.Create(comp.GetChild("comFabric"));
  61. m_comProperty = (UI_ComEctype)UI_ComEctype.Create(comp.GetChild("comProperty"));
  62. m_comFiling = (UI_ComEctype)UI_ComEctype.Create(comp.GetChild("comFiling"));
  63. m_comPorcelain = (UI_ComEctype)UI_ComEctype.Create(comp.GetChild("comPorcelain"));
  64. }
  65. public void Dispose(bool disposeTarget = false)
  66. {
  67. m_loaBg = null;
  68. m_btnBack = null;
  69. m_comMetal.Dispose();
  70. m_comMetal = null;
  71. m_comFabric.Dispose();
  72. m_comFabric = null;
  73. m_comProperty.Dispose();
  74. m_comProperty = null;
  75. m_comFiling.Dispose();
  76. m_comFiling = null;
  77. m_comPorcelain.Dispose();
  78. m_comPorcelain = null;
  79. if(disposeTarget && target != null)
  80. {
  81. target.RemoveFromParent();
  82. target.Dispose();
  83. }
  84. target = null;
  85. }
  86. }
  87. }