UI_ComNormal.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 UI_ComScroll m_comScroll;
  20. public UI_ComPullHead m_comOpenLoad;
  21. public GList m_listRank;
  22. public GTextField m_txtRank;
  23. public GGroup m_grpResult;
  24. public const string URL = "ui://iyz778gkr9ri114";
  25. public const string PACKAGE_NAME = "Poem";
  26. public const string RES_NAME = "ComNormal";
  27. private static UI_ComNormal _proxy;
  28. public static UI_ComNormal Create(GObject gObject = null)
  29. {
  30. var ui = new UI_ComNormal();
  31. if(gObject == null)
  32. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  33. else
  34. ui.target = (GComponent)gObject;
  35. ui.Init(ui.target);
  36. return ui;
  37. }
  38. public static UI_ComNormal Proxy(GObject gObject = null)
  39. {
  40. if(_proxy == null)
  41. {
  42. _proxy = new UI_ComNormal();
  43. }
  44. var ui = _proxy;
  45. if(gObject == null)
  46. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  47. else
  48. ui.target = (GComponent)gObject;
  49. ui.Init(ui.target);
  50. return ui;
  51. }
  52. public static void ProxyEnd()
  53. {
  54. if (_proxy != null)
  55. {
  56. _proxy.Dispose();
  57. }
  58. }
  59. public static void ClearProxy()
  60. {
  61. ProxyEnd();
  62. _proxy = null;
  63. }
  64. private void Init(GComponent comp)
  65. {
  66. m_c1 = comp.GetController("c1");
  67. m_btnShop = (GButton)comp.GetChild("btnShop");
  68. m_btnReward = (GButton)comp.GetChild("btnReward");
  69. m_btnTab0 = (GButton)comp.GetChild("btnTab0");
  70. m_btnTab1 = (GButton)comp.GetChild("btnTab1");
  71. m_btnTab2 = (GButton)comp.GetChild("btnTab2");
  72. m_txtTheme = (GTextField)comp.GetChild("txtTheme");
  73. m_txtTime = (GTextField)comp.GetChild("txtTime");
  74. m_txtRewardCount = (GTextField)comp.GetChild("txtRewardCount");
  75. m_grpTime = (GGroup)comp.GetChild("grpTime");
  76. m_comBoBox = (GComboBox)comp.GetChild("comBoBox");
  77. m_comScroll = (UI_ComScroll)UI_ComScroll.Create(comp.GetChild("comScroll"));
  78. m_comOpenLoad = (UI_ComPullHead)UI_ComPullHead.Create(comp.GetChild("comOpenLoad"));
  79. m_listRank = (GList)comp.GetChild("listRank");
  80. m_txtRank = (GTextField)comp.GetChild("txtRank");
  81. m_grpResult = (GGroup)comp.GetChild("grpResult");
  82. }
  83. public void Dispose(bool disposeTarget = false)
  84. {
  85. m_c1 = null;
  86. m_btnShop = null;
  87. m_btnReward = null;
  88. m_btnTab0 = null;
  89. m_btnTab1 = null;
  90. m_btnTab2 = null;
  91. m_txtTheme = null;
  92. m_txtTime = null;
  93. m_txtRewardCount = null;
  94. m_grpTime = null;
  95. m_comBoBox = null;
  96. m_comScroll.Dispose();
  97. m_comScroll = null;
  98. m_comOpenLoad.Dispose();
  99. m_comOpenLoad = null;
  100. m_listRank = null;
  101. m_txtRank = null;
  102. m_grpResult = null;
  103. if(disposeTarget && target != null)
  104. {
  105. target.RemoveFromParent();
  106. target.Dispose();
  107. }
  108. target = null;
  109. }
  110. }
  111. }