UI_ComNormal.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Poem
  4. {
  5. public partial class UI_ComNormal
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public GButton m_btnShop;
  10. public GButton m_btnReward;
  11. public GButton m_btnTab0;
  12. public GButton m_btnTab1;
  13. public GButton m_btnTab2;
  14. public GTextField m_txtTheme;
  15. public GTextField m_txtTime;
  16. public GTextField m_txtRewardCount;
  17. public GGroup m_grpTime;
  18. public GComboBox m_comBoBox;
  19. public GList m_listRecommend;
  20. public GList m_listFriend;
  21. public GList m_listRank;
  22. public GTextField m_txtRank;
  23. public GGroup m_grpResult;
  24. public UI_ComScroll m_comScroll;
  25. public const string URL = "ui://iyz778gkr9ri114";
  26. public const string PACKAGE_NAME = "Poem";
  27. public const string RES_NAME = "ComNormal";
  28. private static UI_ComNormal _proxy;
  29. public static UI_ComNormal Create(GObject gObject = null)
  30. {
  31. var ui = new UI_ComNormal();
  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 UI_ComNormal Proxy(GObject gObject = null)
  40. {
  41. if(_proxy == null)
  42. {
  43. _proxy = new UI_ComNormal();
  44. }
  45. var ui = _proxy;
  46. if(gObject == null)
  47. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  48. else
  49. ui.target = (GComponent)gObject;
  50. ui.Init(ui.target);
  51. return ui;
  52. }
  53. public static void ProxyEnd()
  54. {
  55. if (_proxy != null)
  56. {
  57. _proxy.Dispose();
  58. }
  59. }
  60. public static void ClearProxy()
  61. {
  62. ProxyEnd();
  63. _proxy = null;
  64. }
  65. private void Init(GComponent comp)
  66. {
  67. m_c1 = comp.GetController("c1");
  68. m_btnShop = (GButton)comp.GetChild("btnShop");
  69. m_btnReward = (GButton)comp.GetChild("btnReward");
  70. m_btnTab0 = (GButton)comp.GetChild("btnTab0");
  71. m_btnTab1 = (GButton)comp.GetChild("btnTab1");
  72. m_btnTab2 = (GButton)comp.GetChild("btnTab2");
  73. m_txtTheme = (GTextField)comp.GetChild("txtTheme");
  74. m_txtTime = (GTextField)comp.GetChild("txtTime");
  75. m_txtRewardCount = (GTextField)comp.GetChild("txtRewardCount");
  76. m_grpTime = (GGroup)comp.GetChild("grpTime");
  77. m_comBoBox = (GComboBox)comp.GetChild("comBoBox");
  78. m_listRecommend = (GList)comp.GetChild("listRecommend");
  79. m_listFriend = (GList)comp.GetChild("listFriend");
  80. m_listRank = (GList)comp.GetChild("listRank");
  81. m_txtRank = (GTextField)comp.GetChild("txtRank");
  82. m_grpResult = (GGroup)comp.GetChild("grpResult");
  83. m_comScroll = (UI_ComScroll)UI_ComScroll.Create(comp.GetChild("comScroll"));
  84. }
  85. public void Dispose(bool disposeTarget = false)
  86. {
  87. m_c1 = null;
  88. m_btnShop = null;
  89. m_btnReward = null;
  90. m_btnTab0 = null;
  91. m_btnTab1 = null;
  92. m_btnTab2 = null;
  93. m_txtTheme = null;
  94. m_txtTime = null;
  95. m_txtRewardCount = null;
  96. m_grpTime = null;
  97. m_comBoBox = null;
  98. m_listRecommend = null;
  99. m_listFriend = null;
  100. m_listRank = null;
  101. m_txtRank = null;
  102. m_grpResult = null;
  103. m_comScroll.Dispose();
  104. m_comScroll = null;
  105. if(disposeTarget && target != null)
  106. {
  107. target.RemoveFromParent();
  108. target.Dispose();
  109. }
  110. target = null;
  111. }
  112. }
  113. }