UI_SettingUI.cs 4.6 KB

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