UI_TravelUI.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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_travellingDB_eff;
  15. public GTextField m_txtTime;
  16. public GGraph m_txt_eff;
  17. public GButton m_btnTips;
  18. public GTextField m_txtTips;
  19. public GGroup m_grpTips;
  20. public UI_Button2 m_btnGo;
  21. public UI_Button6 m_btnGet;
  22. public GButton m_btnPhoto;
  23. public GButton m_btnFieldGuide;
  24. public const string URL = "ui://jitclg1gwono0";
  25. public const string PACKAGE_NAME = "Travel";
  26. public const string RES_NAME = "TravelUI";
  27. private static UI_TravelUI _proxy;
  28. public static UI_TravelUI Create(GObject gObject = null)
  29. {
  30. var ui = new UI_TravelUI();
  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_TravelUI Proxy(GObject gObject = null)
  39. {
  40. if(_proxy == null)
  41. {
  42. _proxy = new UI_TravelUI();
  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_c2 = comp.GetController("c2");
  68. m_loaBg = (GLoader)comp.GetChild("loaBg");
  69. m_bg_eff = (GGraph)comp.GetChild("bg_eff");
  70. m_comValueBar = (GComponent)comp.GetChild("comValueBar");
  71. m_btnback = (GButton)comp.GetChild("btnback");
  72. m_travellingDB_eff = (GGraph)comp.GetChild("travellingDB_eff");
  73. m_txtTime = (GTextField)comp.GetChild("txtTime");
  74. m_txt_eff = (GGraph)comp.GetChild("txt_eff");
  75. m_btnTips = (GButton)comp.GetChild("btnTips");
  76. m_txtTips = (GTextField)comp.GetChild("txtTips");
  77. m_grpTips = (GGroup)comp.GetChild("grpTips");
  78. m_btnGo = (UI_Button2)UI_Button2.Create(comp.GetChild("btnGo"));
  79. m_btnGet = (UI_Button6)UI_Button6.Create(comp.GetChild("btnGet"));
  80. m_btnPhoto = (GButton)comp.GetChild("btnPhoto");
  81. m_btnFieldGuide = (GButton)comp.GetChild("btnFieldGuide");
  82. }
  83. public void Dispose(bool disposeTarget = false)
  84. {
  85. m_c1 = null;
  86. m_c2 = null;
  87. m_loaBg = null;
  88. m_bg_eff = null;
  89. m_comValueBar = null;
  90. m_btnback = null;
  91. m_travellingDB_eff = null;
  92. m_txtTime = null;
  93. m_txt_eff = null;
  94. m_btnTips = null;
  95. m_txtTips = null;
  96. m_grpTips = null;
  97. m_btnGo.Dispose();
  98. m_btnGo = null;
  99. m_btnGet.Dispose();
  100. m_btnGet = null;
  101. m_btnPhoto = null;
  102. m_btnFieldGuide = null;
  103. if(disposeTarget && target != null)
  104. {
  105. target.RemoveFromParent();
  106. target.Dispose();
  107. }
  108. target = null;
  109. }
  110. }
  111. }