UI_LeagueAnswerRankUI.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.League
  4. {
  5. public partial class UI_LeagueAnswerRankUI
  6. {
  7. public GComponent target;
  8. public GButton m_btnClose;
  9. public GList m_list;
  10. public UI_ListRankItem m_comMine;
  11. public const string URL = "ui://tw70qm9dpvb450";
  12. public const string PACKAGE_NAME = "League";
  13. public const string RES_NAME = "LeagueAnswerRankUI";
  14. private static UI_LeagueAnswerRankUI _proxy;
  15. public static UI_LeagueAnswerRankUI Create(GObject gObject = null)
  16. {
  17. var ui = new UI_LeagueAnswerRankUI();
  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_LeagueAnswerRankUI Proxy(GObject gObject = null)
  26. {
  27. if(_proxy == null)
  28. {
  29. _proxy = new UI_LeagueAnswerRankUI();
  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 = (GButton)comp.GetChild("btnClose");
  54. m_list = (GList)comp.GetChild("list");
  55. m_comMine = (UI_ListRankItem)UI_ListRankItem.Create(comp.GetChild("comMine"));
  56. }
  57. public void Dispose(bool disposeTarget = false)
  58. {
  59. m_btnClose = null;
  60. m_list = null;
  61. m_comMine.Dispose();
  62. m_comMine = null;
  63. if(disposeTarget && target != null)
  64. {
  65. target.RemoveFromParent();
  66. target.Dispose();
  67. }
  68. target = null;
  69. }
  70. }
  71. }