UI_TravelUI.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Travel
  4. {
  5. public partial class UI_TravelUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public Controller m_c2;
  10. public GLoader m_loaBg;
  11. public GGraph m_bg_eff;
  12. public GComponent m_comValueBar;
  13. public GButton m_btnback;
  14. public GGraph m_db_loadingEff_holder;
  15. public GGraph m_travellingDB_eff;
  16. public GTextField m_txtTime;
  17. public GGraph m_txt_eff;
  18. public GButton m_btnTips;
  19. public GTextField m_txtTips;
  20. public GGroup m_grpTips;
  21. public GButton m_btnSpeedUp;
  22. public UI_Button2 m_btnGo;
  23. public UI_Button6 m_btnGet;
  24. public GButton m_btnPhoto;
  25. public GButton m_btnFieldGuide;
  26. public const string URL = "ui://jitclg1gwono0";
  27. public const string PACKAGE_NAME = "Travel";
  28. public const string RES_NAME = "TravelUI";
  29. private static UI_TravelUI _proxy;
  30. public static UI_TravelUI Create(GObject gObject = null)
  31. {
  32. var ui = new UI_TravelUI();
  33. if(gObject == null)
  34. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  35. else
  36. ui.target = (GComponent)gObject;
  37. ui.Init(ui.target);
  38. return ui;
  39. }
  40. public static UI_TravelUI Proxy(GObject gObject = null)
  41. {
  42. if(_proxy == null)
  43. {
  44. _proxy = new UI_TravelUI();
  45. }
  46. var ui = _proxy;
  47. if(gObject == null)
  48. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  49. else
  50. ui.target = (GComponent)gObject;
  51. ui.Init(ui.target);
  52. return ui;
  53. }
  54. public static void ProxyEnd()
  55. {
  56. if (_proxy != null)
  57. {
  58. _proxy.Dispose();
  59. }
  60. }
  61. public static void ClearProxy()
  62. {
  63. ProxyEnd();
  64. _proxy = null;
  65. }
  66. private void Init(GComponent comp)
  67. {
  68. m_c1 = comp.GetController("c1");
  69. m_c2 = comp.GetController("c2");
  70. m_loaBg = (GLoader)comp.GetChild("loaBg");
  71. m_bg_eff = (GGraph)comp.GetChild("bg_eff");
  72. m_comValueBar = (GComponent)comp.GetChild("comValueBar");
  73. m_btnback = (GButton)comp.GetChild("btnback");
  74. m_db_loadingEff_holder = (GGraph)comp.GetChild("db_loadingEff_holder");
  75. m_travellingDB_eff = (GGraph)comp.GetChild("travellingDB_eff");
  76. m_txtTime = (GTextField)comp.GetChild("txtTime");
  77. m_txt_eff = (GGraph)comp.GetChild("txt_eff");
  78. m_btnTips = (GButton)comp.GetChild("btnTips");
  79. m_txtTips = (GTextField)comp.GetChild("txtTips");
  80. m_grpTips = (GGroup)comp.GetChild("grpTips");
  81. m_btnSpeedUp = (GButton)comp.GetChild("btnSpeedUp");
  82. m_btnGo = (UI_Button2)UI_Button2.Create(comp.GetChild("btnGo"));
  83. m_btnGet = (UI_Button6)UI_Button6.Create(comp.GetChild("btnGet"));
  84. m_btnPhoto = (GButton)comp.GetChild("btnPhoto");
  85. m_btnFieldGuide = (GButton)comp.GetChild("btnFieldGuide");
  86. }
  87. public void Dispose(bool disposeTarget = false)
  88. {
  89. m_c1 = null;
  90. m_c2 = null;
  91. m_loaBg = null;
  92. m_bg_eff = null;
  93. m_comValueBar = null;
  94. m_btnback = null;
  95. m_db_loadingEff_holder = null;
  96. m_travellingDB_eff = null;
  97. m_txtTime = null;
  98. m_txt_eff = null;
  99. m_btnTips = null;
  100. m_txtTips = null;
  101. m_grpTips = null;
  102. m_btnSpeedUp = null;
  103. m_btnGo.Dispose();
  104. m_btnGo = null;
  105. m_btnGet.Dispose();
  106. m_btnGet = null;
  107. m_btnPhoto = null;
  108. m_btnFieldGuide = null;
  109. if(disposeTarget && target != null)
  110. {
  111. target.RemoveFromParent();
  112. target.Dispose();
  113. }
  114. target = null;
  115. }
  116. }
  117. }