UI_SettingUI.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.RoleInfo
  4. {
  5. public partial class UI_SettingUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public GLoader m_loaBg;
  10. public GLoader m_icon;
  11. public GList m_settingTypeList;
  12. public GButton m_btnExit;
  13. public GButton m_btnBinding;
  14. public UI_Slider2 m_musicSlider;
  15. public GButton m_btnMusic;
  16. public UI_Slider2 m_soundSlider;
  17. public GButton m_btnSound;
  18. public UI_Slider2 m_voiceSlider;
  19. public GButton m_btnVoice;
  20. public GRichTextField m_gameProtectAgree;
  21. public GRichTextField m_privacyAgree;
  22. public GRichTextField m_childrenAgree;
  23. public GRichTextField m_txtDeleteAccount;
  24. public GGroup m_groupAccount;
  25. public UI_Button19 m_btnLogout;
  26. public UI_Button20 m_btnGiftCode;
  27. public GButton m_btnExchange;
  28. public Transition m_suit;
  29. public const string URL = "ui://374k3dwvr9ri1";
  30. public const string PACKAGE_NAME = "RoleInfo";
  31. public const string RES_NAME = "SettingUI";
  32. private static UI_SettingUI _proxy;
  33. public static UI_SettingUI Create(GObject gObject = null)
  34. {
  35. var ui = new UI_SettingUI();
  36. if(gObject == null)
  37. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  38. else
  39. ui.target = (GComponent)gObject;
  40. ui.Init(ui.target);
  41. return ui;
  42. }
  43. public static UI_SettingUI Proxy(GObject gObject = null)
  44. {
  45. if(_proxy == null)
  46. {
  47. _proxy = new UI_SettingUI();
  48. }
  49. var ui = _proxy;
  50. if(gObject == null)
  51. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  52. else
  53. ui.target = (GComponent)gObject;
  54. ui.Init(ui.target);
  55. return ui;
  56. }
  57. public static void ProxyEnd()
  58. {
  59. if (_proxy != null)
  60. {
  61. _proxy.Dispose();
  62. }
  63. }
  64. public static void ClearProxy()
  65. {
  66. ProxyEnd();
  67. _proxy = null;
  68. }
  69. private void Init(GComponent comp)
  70. {
  71. m_c1 = comp.GetController("c1");
  72. m_loaBg = (GLoader)comp.GetChild("loaBg");
  73. m_icon = (GLoader)comp.GetChild("icon");
  74. m_settingTypeList = (GList)comp.GetChild("settingTypeList");
  75. m_btnExit = (GButton)comp.GetChild("btnExit");
  76. m_btnBinding = (GButton)comp.GetChild("btnBinding");
  77. m_musicSlider = (UI_Slider2)UI_Slider2.Create(comp.GetChild("musicSlider"));
  78. m_btnMusic = (GButton)comp.GetChild("btnMusic");
  79. m_soundSlider = (UI_Slider2)UI_Slider2.Create(comp.GetChild("soundSlider"));
  80. m_btnSound = (GButton)comp.GetChild("btnSound");
  81. m_voiceSlider = (UI_Slider2)UI_Slider2.Create(comp.GetChild("voiceSlider"));
  82. m_btnVoice = (GButton)comp.GetChild("btnVoice");
  83. m_gameProtectAgree = (GRichTextField)comp.GetChild("gameProtectAgree");
  84. m_privacyAgree = (GRichTextField)comp.GetChild("privacyAgree");
  85. m_childrenAgree = (GRichTextField)comp.GetChild("childrenAgree");
  86. m_txtDeleteAccount = (GRichTextField)comp.GetChild("txtDeleteAccount");
  87. m_groupAccount = (GGroup)comp.GetChild("groupAccount");
  88. m_btnLogout = (UI_Button19)UI_Button19.Create(comp.GetChild("btnLogout"));
  89. m_btnGiftCode = (UI_Button20)UI_Button20.Create(comp.GetChild("btnGiftCode"));
  90. m_btnExchange = (GButton)comp.GetChild("btnExchange");
  91. m_suit = comp.GetTransition("suit");
  92. }
  93. public void Dispose(bool disposeTarget = false)
  94. {
  95. m_c1 = null;
  96. m_loaBg = null;
  97. m_icon = null;
  98. m_settingTypeList = null;
  99. m_btnExit = null;
  100. m_btnBinding = null;
  101. m_musicSlider.Dispose();
  102. m_musicSlider = null;
  103. m_btnMusic = null;
  104. m_soundSlider.Dispose();
  105. m_soundSlider = null;
  106. m_btnSound = null;
  107. m_voiceSlider.Dispose();
  108. m_voiceSlider = null;
  109. m_btnVoice = null;
  110. m_gameProtectAgree = null;
  111. m_privacyAgree = null;
  112. m_childrenAgree = null;
  113. m_txtDeleteAccount = null;
  114. m_groupAccount = null;
  115. m_btnLogout.Dispose();
  116. m_btnLogout = null;
  117. m_btnGiftCode.Dispose();
  118. m_btnGiftCode = null;
  119. m_btnExchange = null;
  120. m_suit = null;
  121. if(disposeTarget && target != null)
  122. {
  123. target.RemoveFromParent();
  124. target.Dispose();
  125. }
  126. target = null;
  127. }
  128. }
  129. }