UI_FieldUI.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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 GLoader m_loaIcon;
  13. public GGroup m_grpScore;
  14. public UI_Button1 m_btn2;
  15. public UI_Button1 m_btn1;
  16. public UI_Button1 m_btn0;
  17. public GGroup m_grpTab;
  18. public GButton m_btnTask;
  19. public GProgressBar m_proTaskReward;
  20. public GLoader m_loaTaskReward;
  21. public GGroup m_grpTaskReward;
  22. public GTextField m_txtTime;
  23. public GGroup m_grpTime;
  24. public const string URL = "ui://5oh3t7988jo90";
  25. public const string PACKAGE_NAME = "Field";
  26. public const string RES_NAME = "FieldUI";
  27. private static UI_FieldUI _proxy;
  28. public static UI_FieldUI Create(GObject gObject = null)
  29. {
  30. var ui = new UI_FieldUI();
  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_FieldUI Proxy(GObject gObject = null)
  39. {
  40. if(_proxy == null)
  41. {
  42. _proxy = new UI_FieldUI();
  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_loaBg = (GLoader)comp.GetChild("loaBg");
  68. m_comValueBar = (GComponent)comp.GetChild("comValueBar");
  69. m_btnBack = (GButton)comp.GetChild("btnBack");
  70. m_loaIcon = (GLoader)comp.GetChild("loaIcon");
  71. m_grpScore = (GGroup)comp.GetChild("grpScore");
  72. m_btn2 = (UI_Button1)UI_Button1.Create(comp.GetChild("btn2"));
  73. m_btn1 = (UI_Button1)UI_Button1.Create(comp.GetChild("btn1"));
  74. m_btn0 = (UI_Button1)UI_Button1.Create(comp.GetChild("btn0"));
  75. m_grpTab = (GGroup)comp.GetChild("grpTab");
  76. m_btnTask = (GButton)comp.GetChild("btnTask");
  77. m_proTaskReward = (GProgressBar)comp.GetChild("proTaskReward");
  78. m_loaTaskReward = (GLoader)comp.GetChild("loaTaskReward");
  79. m_grpTaskReward = (GGroup)comp.GetChild("grpTaskReward");
  80. m_txtTime = (GTextField)comp.GetChild("txtTime");
  81. m_grpTime = (GGroup)comp.GetChild("grpTime");
  82. }
  83. public void Dispose(bool disposeTarget = false)
  84. {
  85. m_c1 = null;
  86. m_loaBg = null;
  87. m_comValueBar = null;
  88. m_btnBack = null;
  89. m_loaIcon = null;
  90. m_grpScore = null;
  91. m_btn2.Dispose();
  92. m_btn2 = null;
  93. m_btn1.Dispose();
  94. m_btn1 = null;
  95. m_btn0.Dispose();
  96. m_btn0 = null;
  97. m_grpTab = null;
  98. m_btnTask = null;
  99. m_proTaskReward = null;
  100. m_loaTaskReward = null;
  101. m_grpTaskReward = null;
  102. m_txtTime = null;
  103. m_grpTime = null;
  104. if(disposeTarget && target != null)
  105. {
  106. target.RemoveFromParent();
  107. target.Dispose();
  108. }
  109. target = null;
  110. }
  111. }
  112. }