UI_StoryFightResultUI.cs 2.5 KB

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