UI_StoryFightResultUI.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Main
  4. {
  5. public partial class UI_StoryFightResultUI
  6. {
  7. public GComponent target;
  8. public GLoader m_loaBg;
  9. public GGraph m_btnClose;
  10. public UI_ComResult m_comResult;
  11. public UI_ComRoleResult m_ComRoleResult;
  12. public UI_CompFightExpBar m_comExpBar;
  13. public const string URL = "ui://mfvz4q8k8xpg3y";
  14. public const string PACKAGE_NAME = "Main";
  15. public const string RES_NAME = "StoryFightResultUI";
  16. private static UI_StoryFightResultUI _proxy;
  17. public static UI_StoryFightResultUI Create(GObject gObject = null)
  18. {
  19. var ui = new UI_StoryFightResultUI();
  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_StoryFightResultUI Proxy(GObject gObject = null)
  28. {
  29. if(_proxy == null)
  30. {
  31. _proxy = new UI_StoryFightResultUI();
  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_loaBg = (GLoader)comp.GetChild("loaBg");
  56. m_btnClose = (GGraph)comp.GetChild("btnClose");
  57. m_comResult = (UI_ComResult)UI_ComResult.Create(comp.GetChild("comResult"));
  58. m_ComRoleResult = (UI_ComRoleResult)UI_ComRoleResult.Create(comp.GetChild("ComRoleResult"));
  59. m_comExpBar = (UI_CompFightExpBar)UI_CompFightExpBar.Create(comp.GetChild("comExpBar"));
  60. }
  61. public void Dispose(bool disposeTarget = false)
  62. {
  63. m_loaBg = null;
  64. m_btnClose = null;
  65. m_comResult.Dispose();
  66. m_comResult = null;
  67. m_ComRoleResult.Dispose();
  68. m_ComRoleResult = null;
  69. m_comExpBar.Dispose();
  70. m_comExpBar = null;
  71. if(disposeTarget && target != null)
  72. {
  73. target.RemoveFromParent();
  74. target.Dispose();
  75. }
  76. target = null;
  77. }
  78. }
  79. }