@@ -52,15 +52,15 @@ public class GraphicsSettings : BaseUnityPlugin
5252
5353 private void Awake ( )
5454 {
55- Resolution = Config . AddSetting ( CATEGORY_RENDER , "Resolution" , "" , new ConfigDescription ( DESCRIPTION_RESOLUTION , null , new ConfigurationManagerAttributes { Order = 9 , HideDefaultButton = true , CustomDrawer = new Action < ConfigEntryBase > ( ResolutionDrawer ) } ) ) ;
56- DisplayMode = Config . AddSetting ( CATEGORY_RENDER , "Display mode" , SettingEnum . DisplayMode . Default , new ConfigDescription ( "" , null , new ConfigurationManagerAttributes { Order = 10 } ) ) ;
57- SelectedMonitor = Config . AddSetting ( CATEGORY_RENDER , "Selected monitor" , 0 , new ConfigDescription ( "" , new AcceptableValueList < int > ( Enumerable . Range ( 0 , Display . displays . Length ) . ToArray ( ) ) , new ConfigurationManagerAttributes { Order = 8 } ) ) ;
58- VSync = Config . AddSetting ( CATEGORY_RENDER , "VSync" , SettingEnum . VSyncType . Default , new ConfigDescription ( DESCRIPTION_VSYNC , null , new ConfigurationManagerAttributes { Order = 7 } ) ) ;
59- FramerateLimit = Config . AddSetting ( CATEGORY_RENDER , "Framerate limit" , Application . targetFrameRate , new ConfigDescription ( DESCRIPTION_FRAMERATELIMIT , null , new ConfigurationManagerAttributes { Order = 6 , HideDefaultButton = true , CustomDrawer = new Action < ConfigEntryBase > ( FramerateLimitDrawer ) } ) ) ;
60- AntiAliasing = Config . AddSetting ( CATEGORY_RENDER , "Anti-aliasing multiplier" , SettingEnum . AntiAliasingMode . Default , new ConfigDescription ( DESCRIPTION_ANTIALIASING ) ) ;
61- AnisotropicFiltering = Config . AddSetting ( CATEGORY_RENDER , "Anisotropic filtering" , SettingEnum . AnisotropicFilteringMode . Default , new ConfigDescription ( DESCRIPTION_ANISOFILTER ) ) ;
62- RunInBackground = Config . AddSetting ( CATEGORY_GENERAL , "Run in background" , SettingEnum . RunInBackgroundMode . Default , new ConfigDescription ( DESCRIPTION_RUNINBACKGROUND ) ) ;
63- OptimizeInBackground = Config . AddSetting ( CATEGORY_GENERAL , "Optimize in background" , true , new ConfigDescription ( DESCRIPTION_OPTIMIZEINBACKGROUND ) ) ;
55+ Resolution = Config . Bind ( CATEGORY_RENDER , "Resolution" , "" , new ConfigDescription ( DESCRIPTION_RESOLUTION , null , new ConfigurationManagerAttributes { Order = 9 , HideDefaultButton = true , CustomDrawer = new Action < ConfigEntryBase > ( ResolutionDrawer ) } ) ) ;
56+ DisplayMode = Config . Bind ( CATEGORY_RENDER , "Display mode" , SettingEnum . DisplayMode . Default , new ConfigDescription ( "" , null , new ConfigurationManagerAttributes { Order = 10 } ) ) ;
57+ SelectedMonitor = Config . Bind ( CATEGORY_RENDER , "Selected monitor" , 0 , new ConfigDescription ( "" , new AcceptableValueList < int > ( Enumerable . Range ( 0 , Display . displays . Length ) . ToArray ( ) ) , new ConfigurationManagerAttributes { Order = 8 } ) ) ;
58+ VSync = Config . Bind ( CATEGORY_RENDER , "VSync" , SettingEnum . VSyncType . Default , new ConfigDescription ( DESCRIPTION_VSYNC , null , new ConfigurationManagerAttributes { Order = 7 } ) ) ;
59+ FramerateLimit = Config . Bind ( CATEGORY_RENDER , "Framerate limit" , Application . targetFrameRate , new ConfigDescription ( DESCRIPTION_FRAMERATELIMIT , null , new ConfigurationManagerAttributes { Order = 6 , HideDefaultButton = true , CustomDrawer = new Action < ConfigEntryBase > ( FramerateLimitDrawer ) } ) ) ;
60+ AntiAliasing = Config . Bind ( CATEGORY_RENDER , "Anti-aliasing multiplier" , SettingEnum . AntiAliasingMode . Default , new ConfigDescription ( DESCRIPTION_ANTIALIASING ) ) ;
61+ AnisotropicFiltering = Config . Bind ( CATEGORY_RENDER , "Anisotropic filtering" , SettingEnum . AnisotropicFilteringMode . Default , new ConfigDescription ( DESCRIPTION_ANISOFILTER ) ) ;
62+ RunInBackground = Config . Bind ( CATEGORY_GENERAL , "Run in background" , SettingEnum . RunInBackgroundMode . Default , new ConfigDescription ( DESCRIPTION_RUNINBACKGROUND ) ) ;
63+ OptimizeInBackground = Config . Bind ( CATEGORY_GENERAL , "Optimize in background" , true , new ConfigDescription ( DESCRIPTION_OPTIMIZEINBACKGROUND ) ) ;
6464
6565 if ( DisplayMode . Value == SettingEnum . DisplayMode . BorderlessFullscreen )
6666 StartCoroutine ( RemoveBorder ( ) ) ;
0 commit comments