UI_StoryFightResultUI.cs 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 Controller m_c1;
  9. public UI_CompFightExpBar m_expBar;
  10. public GGraph m_btnClose;
  11. public GLoader m_bg;
  12. public GGraph m_holder;
  13. public GTextField m_txtScore;
  14. public UI_CompFlower3 m_flower;
  15. public GGroup m_grpTop;
  16. public Transition m_t0;
  17. public const string URL = "ui://mfvz4q8k8xpg3y";
  18. public const string PACKAGE_NAME = "Main";
  19. public const string RES_NAME = "StoryFightResultUI";
  20. private static UI_StoryFightResultUI _proxy;
  21. public static UI_StoryFightResultUI Create(GObject gObject = null)
  22. {
  23. var ui = new UI_StoryFightResultUI();
  24. if(gObject == null)
  25. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  26. else
  27. ui.target = (GComponent)gObject;
  28. ui.Init(ui.target);
  29. return ui;
  30. }
  31. public static UI_StoryFightResultUI Proxy(GObject gObject = null)
  32. {
  33. if(_proxy == null)
  34. {
  35. _proxy = new UI_StoryFightResultUI();
  36. }
  37. var ui = _proxy;
  38. if(gObject == null)
  39. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  40. else
  41. ui.target = (GComponent)gObject;
  42. ui.Init(ui.target);
  43. return ui;
  44. }
  45. public static void ProxyEnd()
  46. {
  47. if (_proxy != null)
  48. {
  49. _proxy.Dispose();
  50. }
  51. }
  52. public static void ClearProxy()
  53. {
  54. ProxyEnd();
  55. _proxy = null;
  56. }
  57. private void Init(GComponent comp)
  58. {
  59. m_c1 = comp.GetController("c1");
  60. m_expBar = (UI_CompFightExpBar)UI_CompFightExpBar.Create(comp.GetChild("expBar"));
  61. m_btnClose = (GGraph)comp.GetChild("btnClose");
  62. m_bg = (GLoader)comp.GetChild("bg");
  63. m_holder = (GGraph)comp.GetChild("holder");
  64. m_txtScore = (GTextField)comp.GetChild("txtScore");
  65. m_flower = (UI_CompFlower3)UI_CompFlower3.Create(comp.GetChild("flower"));
  66. m_grpTop = (GGroup)comp.GetChild("grpTop");
  67. m_t0 = comp.GetTransition("t0");
  68. }
  69. public void Dispose(bool disposeTarget = false)
  70. {
  71. m_c1 = null;
  72. m_expBar.Dispose();
  73. m_expBar = null;
  74. m_btnClose = null;
  75. m_bg = null;
  76. m_holder = null;
  77. m_txtScore = null;
  78. m_flower.Dispose();
  79. m_flower = null;
  80. m_grpTop = null;
  81. m_t0 = null;
  82. if(disposeTarget && target != null)
  83. {
  84. target.RemoveFromParent();
  85. target.Dispose();
  86. }
  87. target = null;
  88. }
  89. }
  90. }