UI_FieldUI.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Field
  4. {
  5. public partial class UI_FieldUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public GLoader m_loaBg;
  10. public GComponent m_comValueBar;
  11. public GButton m_btnBack;
  12. public UI_Button1 m_btn0;
  13. public UI_Button1 m_btn1;
  14. public UI_Button1 m_btn2;
  15. public GGroup m_grpTab;
  16. public GTextField m_txtScore;
  17. public GGroup m_grpScore;
  18. public GButton m_btnGo;
  19. public GTextField m_txtMaxLv;
  20. public GLoader m_loaConsume;
  21. public GTextField m_txtConsume;
  22. public GGroup m_grpconsume;
  23. public GButton m_btnTask;
  24. public GProgressBar m_proTaskReward;
  25. public GLoader m_loaTaskReward;
  26. public GGroup m_grpTaskReward;
  27. public GTextField m_txtTime;
  28. public GGroup m_grpTime;
  29. public const string URL = "ui://5oh3t7988jo90";
  30. public const string PACKAGE_NAME = "Field";
  31. public const string RES_NAME = "FieldUI";
  32. private static UI_FieldUI _proxy;
  33. public static UI_FieldUI Create(GObject gObject = null)
  34. {
  35. var ui = new UI_FieldUI();
  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 UI_FieldUI Proxy(GObject gObject = null)
  44. {
  45. if(_proxy == null)
  46. {
  47. _proxy = new UI_FieldUI();
  48. }
  49. var ui = _proxy;
  50. if(gObject == null)
  51. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  52. else
  53. ui.target = (GComponent)gObject;
  54. ui.Init(ui.target);
  55. return ui;
  56. }
  57. public static void ProxyEnd()
  58. {
  59. if (_proxy != null)
  60. {
  61. _proxy.Dispose();
  62. }
  63. }
  64. public static void ClearProxy()
  65. {
  66. ProxyEnd();
  67. _proxy = null;
  68. }
  69. private void Init(GComponent comp)
  70. {
  71. m_c1 = comp.GetController("c1");
  72. m_loaBg = (GLoader)comp.GetChild("loaBg");
  73. m_comValueBar = (GComponent)comp.GetChild("comValueBar");
  74. m_btnBack = (GButton)comp.GetChild("btnBack");
  75. m_btn0 = (UI_Button1)UI_Button1.Create(comp.GetChild("btn0"));
  76. m_btn1 = (UI_Button1)UI_Button1.Create(comp.GetChild("btn1"));
  77. m_btn2 = (UI_Button1)UI_Button1.Create(comp.GetChild("btn2"));
  78. m_grpTab = (GGroup)comp.GetChild("grpTab");
  79. m_txtScore = (GTextField)comp.GetChild("txtScore");
  80. m_grpScore = (GGroup)comp.GetChild("grpScore");
  81. m_btnGo = (GButton)comp.GetChild("btnGo");
  82. m_txtMaxLv = (GTextField)comp.GetChild("txtMaxLv");
  83. m_loaConsume = (GLoader)comp.GetChild("loaConsume");
  84. m_txtConsume = (GTextField)comp.GetChild("txtConsume");
  85. m_grpconsume = (GGroup)comp.GetChild("grpconsume");
  86. m_btnTask = (GButton)comp.GetChild("btnTask");
  87. m_proTaskReward = (GProgressBar)comp.GetChild("proTaskReward");
  88. m_loaTaskReward = (GLoader)comp.GetChild("loaTaskReward");
  89. m_grpTaskReward = (GGroup)comp.GetChild("grpTaskReward");
  90. m_txtTime = (GTextField)comp.GetChild("txtTime");
  91. m_grpTime = (GGroup)comp.GetChild("grpTime");
  92. }
  93. public void Dispose(bool disposeTarget = false)
  94. {
  95. m_c1 = null;
  96. m_loaBg = null;
  97. m_comValueBar = null;
  98. m_btnBack = null;
  99. m_btn0.Dispose();
  100. m_btn0 = null;
  101. m_btn1.Dispose();
  102. m_btn1 = null;
  103. m_btn2.Dispose();
  104. m_btn2 = null;
  105. m_grpTab = null;
  106. m_txtScore = null;
  107. m_grpScore = null;
  108. m_btnGo = null;
  109. m_txtMaxLv = null;
  110. m_loaConsume = null;
  111. m_txtConsume = null;
  112. m_grpconsume = null;
  113. m_btnTask = null;
  114. m_proTaskReward = null;
  115. m_loaTaskReward = null;
  116. m_grpTaskReward = null;
  117. m_txtTime = null;
  118. m_grpTime = null;
  119. if(disposeTarget && target != null)
  120. {
  121. target.RemoveFromParent();
  122. target.Dispose();
  123. }
  124. target = null;
  125. }
  126. }
  127. }