UI_RoleInfoUI.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Main
  4. {
  5. public partial class UI_RoleInfoUI
  6. {
  7. public GComponent target;
  8. public GLoader m_bg;
  9. public GTextField m_txtTitle;
  10. public GTextField m_txtRoleName;
  11. public GTextField m_txtLvl;
  12. public GProgressBar m_proBarExp;
  13. public GButton m_btnSound;
  14. public GButton m_btnMusic;
  15. public GButton m_btnLogout;
  16. public GButton m_btnExit;
  17. public GButton m_btnHelp;
  18. public GTextField m_txtVersion;
  19. public GLoader m_loaChangeName;
  20. public const string URL = "ui://mfvz4q8kd4iw6k";
  21. public const string PACKAGE_NAME = "Main";
  22. public const string RES_NAME = "RoleInfoUI";
  23. private static UI_RoleInfoUI _proxy;
  24. public static UI_RoleInfoUI Create(GObject gObject = null)
  25. {
  26. var ui = new UI_RoleInfoUI();
  27. if(gObject == null)
  28. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  29. else
  30. ui.target = (GComponent)gObject;
  31. ui.Init(ui.target);
  32. return ui;
  33. }
  34. public static UI_RoleInfoUI Proxy(GObject gObject = null)
  35. {
  36. if(_proxy == null)
  37. {
  38. _proxy = new UI_RoleInfoUI();
  39. }
  40. var ui = _proxy;
  41. if(gObject == null)
  42. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  43. else
  44. ui.target = (GComponent)gObject;
  45. ui.Init(ui.target);
  46. return ui;
  47. }
  48. public static void ProxyEnd()
  49. {
  50. if (_proxy != null)
  51. {
  52. _proxy.Dispose();
  53. }
  54. }
  55. public static void ClearProxy()
  56. {
  57. ProxyEnd();
  58. _proxy = null;
  59. }
  60. private void Init(GComponent comp)
  61. {
  62. m_bg = (GLoader)comp.GetChild("bg");
  63. m_txtTitle = (GTextField)comp.GetChild("txtTitle");
  64. m_txtRoleName = (GTextField)comp.GetChild("txtRoleName");
  65. m_txtLvl = (GTextField)comp.GetChild("txtLvl");
  66. m_proBarExp = (GProgressBar)comp.GetChild("proBarExp");
  67. m_btnSound = (GButton)comp.GetChild("btnSound");
  68. m_btnMusic = (GButton)comp.GetChild("btnMusic");
  69. m_btnLogout = (GButton)comp.GetChild("btnLogout");
  70. m_btnExit = (GButton)comp.GetChild("btnExit");
  71. m_btnHelp = (GButton)comp.GetChild("btnHelp");
  72. m_txtVersion = (GTextField)comp.GetChild("txtVersion");
  73. m_loaChangeName = (GLoader)comp.GetChild("loaChangeName");
  74. }
  75. public void Dispose(bool disposeTarget = false)
  76. {
  77. m_bg = null;
  78. m_txtTitle = null;
  79. m_txtRoleName = null;
  80. m_txtLvl = null;
  81. m_proBarExp = null;
  82. m_btnSound = null;
  83. m_btnMusic = null;
  84. m_btnLogout = null;
  85. m_btnExit = null;
  86. m_btnHelp = null;
  87. m_txtVersion = null;
  88. m_loaChangeName = null;
  89. if(disposeTarget && target != null)
  90. {
  91. target.RemoveFromParent();
  92. target.Dispose();
  93. }
  94. target = null;
  95. }
  96. }
  97. }