UI_ArenaResultQuickUI.cs 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Arena
  4. {
  5. public partial class UI_ArenaResultQuickUI
  6. {
  7. public GComponent target;
  8. public UI_ComTitle m_comTitle;
  9. public GTextField m_txtTargetName;
  10. public GComponent m_comTargetHead;
  11. public GTextField m_txtTargetRank;
  12. public GTextField m_txtDantitle;
  13. public GList m_list;
  14. public UI_ComAllScoreResult m_comResult;
  15. public const string URL = "ui://4lc5fhlbpsphx";
  16. public const string PACKAGE_NAME = "Arena";
  17. public const string RES_NAME = "ArenaResultQuickUI";
  18. private static UI_ArenaResultQuickUI _proxy;
  19. public static UI_ArenaResultQuickUI Create(GObject gObject = null)
  20. {
  21. var ui = new UI_ArenaResultQuickUI();
  22. if(gObject == null)
  23. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  24. else
  25. ui.target = (GComponent)gObject;
  26. ui.Init(ui.target);
  27. return ui;
  28. }
  29. public static UI_ArenaResultQuickUI Proxy(GObject gObject = null)
  30. {
  31. if(_proxy == null)
  32. {
  33. _proxy = new UI_ArenaResultQuickUI();
  34. }
  35. var ui = _proxy;
  36. if(gObject == null)
  37. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  38. else
  39. ui.target = (GComponent)gObject;
  40. ui.Init(ui.target);
  41. return ui;
  42. }
  43. public static void ProxyEnd()
  44. {
  45. if (_proxy != null)
  46. {
  47. _proxy.Dispose();
  48. }
  49. }
  50. public static void ClearProxy()
  51. {
  52. ProxyEnd();
  53. _proxy = null;
  54. }
  55. private void Init(GComponent comp)
  56. {
  57. m_comTitle = (UI_ComTitle)UI_ComTitle.Create(comp.GetChild("comTitle"));
  58. m_txtTargetName = (GTextField)comp.GetChild("txtTargetName");
  59. m_comTargetHead = (GComponent)comp.GetChild("comTargetHead");
  60. m_txtTargetRank = (GTextField)comp.GetChild("txtTargetRank");
  61. m_txtDantitle = (GTextField)comp.GetChild("txtDantitle");
  62. m_list = (GList)comp.GetChild("list");
  63. m_comResult = (UI_ComAllScoreResult)UI_ComAllScoreResult.Create(comp.GetChild("comResult"));
  64. }
  65. public void Dispose(bool disposeTarget = false)
  66. {
  67. m_comTitle.Dispose();
  68. m_comTitle = null;
  69. m_txtTargetName = null;
  70. m_comTargetHead = null;
  71. m_txtTargetRank = null;
  72. m_txtDantitle = null;
  73. m_list = null;
  74. m_comResult.Dispose();
  75. m_comResult = null;
  76. if(disposeTarget && target != null)
  77. {
  78. target.RemoveFromParent();
  79. target.Dispose();
  80. }
  81. target = null;
  82. }
  83. }
  84. }