UI_RoleInfoUI.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 const string URL = "ui://mfvz4q8kd4iw6k";
  20. public const string PACKAGE_NAME = "Main";
  21. public const string RES_NAME = "RoleInfoUI";
  22. private static UI_RoleInfoUI _proxy;
  23. public static UI_RoleInfoUI Create(GObject gObject = null)
  24. {
  25. var ui = new UI_RoleInfoUI();
  26. if(gObject == null)
  27. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  28. else
  29. ui.target = (GComponent)gObject;
  30. ui.Init(ui.target);
  31. return ui;
  32. }
  33. public static UI_RoleInfoUI Proxy(GObject gObject = null)
  34. {
  35. if(_proxy == null)
  36. {
  37. _proxy = new UI_RoleInfoUI();
  38. }
  39. var ui = _proxy;
  40. if(gObject == null)
  41. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  42. else
  43. ui.target = (GComponent)gObject;
  44. ui.Init(ui.target);
  45. return ui;
  46. }
  47. public static void ProxyEnd()
  48. {
  49. if (_proxy != null)
  50. {
  51. _proxy.Dispose();
  52. }
  53. }
  54. public static void ClearProxy()
  55. {
  56. ProxyEnd();
  57. _proxy = null;
  58. }
  59. private void Init(GComponent comp)
  60. {
  61. m_bg = (GLoader)comp.GetChild("bg");
  62. m_txtTitle = (GTextField)comp.GetChild("txtTitle");
  63. m_txtRoleName = (GTextField)comp.GetChild("txtRoleName");
  64. m_txtLvl = (GTextField)comp.GetChild("txtLvl");
  65. m_proBarExp = (GProgressBar)comp.GetChild("proBarExp");
  66. m_btnSound = (GButton)comp.GetChild("btnSound");
  67. m_btnMusic = (GButton)comp.GetChild("btnMusic");
  68. m_btnLogout = (GButton)comp.GetChild("btnLogout");
  69. m_btnExit = (GButton)comp.GetChild("btnExit");
  70. m_btnHelp = (GButton)comp.GetChild("btnHelp");
  71. m_txtVersion = (GTextField)comp.GetChild("txtVersion");
  72. }
  73. public void Dispose(bool disposeTarget = false)
  74. {
  75. m_bg = null;
  76. m_txtTitle = null;
  77. m_txtRoleName = null;
  78. m_txtLvl = null;
  79. m_proBarExp = null;
  80. m_btnSound = null;
  81. m_btnMusic = null;
  82. m_btnLogout = null;
  83. m_btnExit = null;
  84. m_btnHelp = null;
  85. m_txtVersion = null;
  86. if(disposeTarget && target != null)
  87. {
  88. target.RemoveFromParent();
  89. target.Dispose();
  90. }
  91. target = null;
  92. }
  93. }
  94. }