You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GraphicsSettingsIL2CPP_net6/GraphicsSettings.cs
+83-27Lines changed: 83 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
1
usingSystem;
2
2
usingBepInEx.Configuration;
3
+
usingBepInEx.Logging;
3
4
usingBepInEx.Unity.IL2CPP;
4
5
usingUnityEngine;
6
+
usingUnityEngine.Events;
5
7
usingUnityEngine.SceneManagement;
6
8
7
9
namespaceBepInEx
@@ -27,57 +29,111 @@ public class GraphicsSettings : BasePlugin
27
29
28
30
publicoverridevoidLoad()
29
31
{
30
-
AutoApply=Config.Bind("Apply on Startup","Apply on Startup",false,"Apply graphics settings when you start the game. May also force the resolution when the game is running");
Width=Config.Bind("Resolution","Width",1280,"Set Resolution Width. Minimum is 800");
32
+
AutoApply=Config.Bind("General","Auto Apply",false,"Apply all graphics settings automatically whenever active scene changes. Otherwise settings are only applied as they are changed.");
Log.Log(showWarning?LogLevel.Message|LogLevel.Warning:LogLevel.Warning,"Could not hook the scene change event handler, changes will not be applied automatically");
Framerate=Config.Bind("Framerate","Target Framerate",-1,"Target Framerate only works if vSync is Off. Set -1 to unlimited");
70
+
Framerate=Config.Bind("Framerate Override","Target Framerate",Application.targetFrameRate,"Force specified target Framerate. Only works if vSync is Off. Set -1 for unlimited.");
@@ -27,57 +29,111 @@ public class GraphicsSettings : BasePlugin
27
29
28
30
publicoverridevoidLoad()
29
31
{
30
-
AutoApply=Config.Bind("Apply on Startup","Apply on Startup",false,"Apply graphics settings when you start the game. May also force the resolution when the game is running");
Width=Config.Bind("Resolution","Width",1280,"Set Resolution Width. Minimum is 800");
32
+
AutoApply=Config.Bind("General","Auto Apply",false,"Apply all graphics settings automatically whenever active scene changes. Otherwise settings are only applied as they are changed.");
Log.Log(showWarning?LogLevel.Message|LogLevel.Warning:LogLevel.Warning,"Could not hook the scene change event handler, changes will not be applied automatically");
Framerate=Config.Bind("Framerate","Target Framerate",-1,"Target Framerate only works if vSync is Off. Set -1 to unlimited");
70
+
Framerate=Config.Bind("Framerate Override","Target Framerate",Application.targetFrameRate,"Force specified target Framerate. Only works if vSync is Off. Set -1 for unlimited.");
0 commit comments