UI_StoryFightResultUI.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 GGraph m_btnClose;
  9. public UI_ComResult m_comResult;
  10. public UI_CompFightExpBar m_comExpBar;
  11. public const string URL = "ui://mfvz4q8k8xpg3y";
  12. public const string PACKAGE_NAME = "Main";
  13. public const string RES_NAME = "StoryFightResultUI";
  14. private static UI_StoryFightResultUI _proxy;
  15. public static UI_StoryFightResultUI Create(GObject gObject = null)
  16. {
  17. var ui = new UI_StoryFightResultUI();
  18. if(gObject == null)
  19. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  20. else
  21. ui.target = (GComponent)gObject;
  22. ui.Init(ui.target);
  23. return ui;
  24. }
  25. public static UI_StoryFightResultUI Proxy(GObject gObject = null)
  26. {
  27. if(_proxy == null)
  28. {
  29. _proxy = new UI_StoryFightResultUI();
  30. }
  31. var ui = _proxy;
  32. if(gObject == null)
  33. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  34. else
  35. ui.target = (GComponent)gObject;
  36. ui.Init(ui.target);
  37. return ui;
  38. }
  39. public static void ProxyEnd()
  40. {
  41. if (_proxy != null)
  42. {
  43. _proxy.Dispose();
  44. }
  45. }
  46. public static void ClearProxy()
  47. {
  48. ProxyEnd();
  49. _proxy = null;
  50. }
  51. private void Init(GComponent comp)
  52. {
  53. m_btnClose = (GGraph)comp.GetChild("btnClose");
  54. m_comResult = (UI_ComResult)UI_ComResult.Create(comp.GetChild("comResult"));
  55. m_comExpBar = (UI_CompFightExpBar)UI_CompFightExpBar.Create(comp.GetChild("comExpBar"));
  56. }
  57. public void Dispose(bool disposeTarget = false)
  58. {
  59. m_btnClose = null;
  60. m_comResult.Dispose();
  61. m_comResult = null;
  62. m_comExpBar.Dispose();
  63. m_comExpBar = null;
  64. if(disposeTarget && target != null)
  65. {
  66. target.RemoveFromParent();
  67. target.Dispose();
  68. }
  69. target = null;
  70. }
  71. }
  72. }