UI_BagUI.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Bag
  4. {
  5. public partial class UI_BagUI
  6. {
  7. public GComponent target;
  8. public GLoader m_loaBg;
  9. public GLoader m_Top_img;
  10. public GComponent m_comValueBar;
  11. public GList m_list;
  12. public GButton m_btnBack;
  13. public Transition m_t0;
  14. public const string URL = "ui://2bsz6nelohbxn";
  15. public const string PACKAGE_NAME = "Bag";
  16. public const string RES_NAME = "BagUI";
  17. private static UI_BagUI _proxy;
  18. public static UI_BagUI Create(GObject gObject = null)
  19. {
  20. var ui = new UI_BagUI();
  21. if(gObject == null)
  22. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  23. else
  24. ui.target = (GComponent)gObject;
  25. ui.Init(ui.target);
  26. return ui;
  27. }
  28. public static UI_BagUI Proxy(GObject gObject = null)
  29. {
  30. if(_proxy == null)
  31. {
  32. _proxy = new UI_BagUI();
  33. }
  34. var ui = _proxy;
  35. if(gObject == null)
  36. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  37. else
  38. ui.target = (GComponent)gObject;
  39. ui.Init(ui.target);
  40. return ui;
  41. }
  42. public static void ProxyEnd()
  43. {
  44. if (_proxy != null)
  45. {
  46. _proxy.Dispose();
  47. }
  48. }
  49. public static void ClearProxy()
  50. {
  51. ProxyEnd();
  52. _proxy = null;
  53. }
  54. private void Init(GComponent comp)
  55. {
  56. m_loaBg = (GLoader)comp.GetChild("loaBg");
  57. m_Top_img = (GLoader)comp.GetChild("Top_img");
  58. m_comValueBar = (GComponent)comp.GetChild("comValueBar");
  59. m_list = (GList)comp.GetChild("list");
  60. m_btnBack = (GButton)comp.GetChild("btnBack");
  61. m_t0 = comp.GetTransition("t0");
  62. }
  63. public void Dispose(bool disposeTarget = false)
  64. {
  65. m_loaBg = null;
  66. m_Top_img = null;
  67. m_comValueBar = null;
  68. m_list = null;
  69. m_btnBack = null;
  70. m_t0 = null;
  71. if(disposeTarget && target != null)
  72. {
  73. target.RemoveFromParent();
  74. target.Dispose();
  75. }
  76. target = null;
  77. }
  78. }
  79. }