UI_FieldUI.cs 4.4 KB

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