UI_InstanceZonesUI.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.InstanceZones
  4. {
  5. public partial class UI_InstanceZonesUI
  6. {
  7. public GComponent target;
  8. public GLoader m_loaBg;
  9. public GGraph m_bg_eff;
  10. public GGraph m_fish_eff;
  11. public UI_ButtonModle7 m_btn1;
  12. public UI_ButtonModle9 m_btnStudio;
  13. public UI_ButtonModle9 m_btnTravel;
  14. public UI_ButtonModle9 m_btnPoem;
  15. public UI_ButtonModle9 m_btnField;
  16. public UI_ButtonModle9 m_btnArena;
  17. public GGraph m_eff;
  18. public GButton m_btnBack;
  19. public GComponent m_valueBar;
  20. public Transition m_t0;
  21. public const string URL = "ui://ez8qotvcyeocfv0";
  22. public const string PACKAGE_NAME = "InstanceZones";
  23. public const string RES_NAME = "InstanceZonesUI";
  24. private static UI_InstanceZonesUI _proxy;
  25. public static UI_InstanceZonesUI Create(GObject gObject = null)
  26. {
  27. var ui = new UI_InstanceZonesUI();
  28. if(gObject == null)
  29. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  30. else
  31. ui.target = (GComponent)gObject;
  32. ui.Init(ui.target);
  33. return ui;
  34. }
  35. public static UI_InstanceZonesUI Proxy(GObject gObject = null)
  36. {
  37. if(_proxy == null)
  38. {
  39. _proxy = new UI_InstanceZonesUI();
  40. }
  41. var ui = _proxy;
  42. if(gObject == null)
  43. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  44. else
  45. ui.target = (GComponent)gObject;
  46. ui.Init(ui.target);
  47. return ui;
  48. }
  49. public static void ProxyEnd()
  50. {
  51. if (_proxy != null)
  52. {
  53. _proxy.Dispose();
  54. }
  55. }
  56. public static void ClearProxy()
  57. {
  58. ProxyEnd();
  59. _proxy = null;
  60. }
  61. private void Init(GComponent comp)
  62. {
  63. m_loaBg = (GLoader)comp.GetChild("loaBg");
  64. m_bg_eff = (GGraph)comp.GetChild("bg_eff");
  65. m_fish_eff = (GGraph)comp.GetChild("fish_eff");
  66. m_btn1 = (UI_ButtonModle7)UI_ButtonModle7.Create(comp.GetChild("btn1"));
  67. m_btnStudio = (UI_ButtonModle9)UI_ButtonModle9.Create(comp.GetChild("btnStudio"));
  68. m_btnTravel = (UI_ButtonModle9)UI_ButtonModle9.Create(comp.GetChild("btnTravel"));
  69. m_btnPoem = (UI_ButtonModle9)UI_ButtonModle9.Create(comp.GetChild("btnPoem"));
  70. m_btnField = (UI_ButtonModle9)UI_ButtonModle9.Create(comp.GetChild("btnField"));
  71. m_btnArena = (UI_ButtonModle9)UI_ButtonModle9.Create(comp.GetChild("btnArena"));
  72. m_eff = (GGraph)comp.GetChild("eff");
  73. m_btnBack = (GButton)comp.GetChild("btnBack");
  74. m_valueBar = (GComponent)comp.GetChild("valueBar");
  75. m_t0 = comp.GetTransition("t0");
  76. }
  77. public void Dispose(bool disposeTarget = false)
  78. {
  79. m_loaBg = null;
  80. m_bg_eff = null;
  81. m_fish_eff = null;
  82. m_btn1.Dispose();
  83. m_btn1 = null;
  84. m_btnStudio.Dispose();
  85. m_btnStudio = null;
  86. m_btnTravel.Dispose();
  87. m_btnTravel = null;
  88. m_btnPoem.Dispose();
  89. m_btnPoem = null;
  90. m_btnField.Dispose();
  91. m_btnField = null;
  92. m_btnArena.Dispose();
  93. m_btnArena = null;
  94. m_eff = null;
  95. m_btnBack = null;
  96. m_valueBar = null;
  97. m_t0 = null;
  98. if(disposeTarget && target != null)
  99. {
  100. target.RemoveFromParent();
  101. target.Dispose();
  102. }
  103. target = null;
  104. }
  105. }
  106. }