UI_XiuFangUI.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.XiuFang
  4. {
  5. public partial class UI_XiuFangUI
  6. {
  7. public GComponent target;
  8. public GLoader m_bg;
  9. public GButton m_btnBack;
  10. public GLoader m_btnClothingShop;
  11. public GLoader m_btnClothingUpgrade;
  12. public GLoader m_btnSuitSynthetic;
  13. public const string URL = "ui://kv0ad4wy9xlo0";
  14. public const string PACKAGE_NAME = "XiuFang";
  15. public const string RES_NAME = "XiuFangUI";
  16. private static UI_XiuFangUI _proxy;
  17. public static UI_XiuFangUI Create(GObject gObject = null)
  18. {
  19. var ui = new UI_XiuFangUI();
  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_XiuFangUI Proxy(GObject gObject = null)
  28. {
  29. if(_proxy == null)
  30. {
  31. _proxy = new UI_XiuFangUI();
  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_bg = (GLoader)comp.GetChild("bg");
  56. m_btnBack = (GButton)comp.GetChild("btnBack");
  57. m_btnClothingShop = (GLoader)comp.GetChild("btnClothingShop");
  58. m_btnClothingUpgrade = (GLoader)comp.GetChild("btnClothingUpgrade");
  59. m_btnSuitSynthetic = (GLoader)comp.GetChild("btnSuitSynthetic");
  60. }
  61. public void Dispose(bool disposeTarget = false)
  62. {
  63. m_bg = null;
  64. m_btnBack = null;
  65. m_btnClothingShop = null;
  66. m_btnClothingUpgrade = null;
  67. m_btnSuitSynthetic = null;
  68. if(disposeTarget && target != null)
  69. {
  70. target.RemoveFromParent();
  71. target.Dispose();
  72. }
  73. target = null;
  74. }
  75. }
  76. }