-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "Default" option to most settings, which keeps game's original value
- Loading branch information
1 parent
b161594
commit 89064e9
Showing
2 changed files
with
79 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,52 @@ | ||
using System.ComponentModel; | ||
using UnityEngine; | ||
|
||
namespace GraphicsSettings | ||
{ | ||
internal class SettingEnum | ||
{ | ||
public enum VSyncType | ||
{ | ||
Disabled, | ||
Enabled, | ||
Half | ||
Default = -1, | ||
Disabled = 0, | ||
Enabled = 1, | ||
Half = 2 | ||
} | ||
|
||
public enum DisplayMode | ||
{ | ||
Default, | ||
Fullscreen, | ||
[Description("Borderless fullscreen")] | ||
BorderlessFullscreen, | ||
Windowed | ||
} | ||
|
||
public enum AntiAliasingMode | ||
{ | ||
Default = -1, | ||
Disabled = 0, | ||
[Description("2x MSAA")] | ||
X2 = 2, | ||
[Description("4x MSAA")] | ||
X4 = 4, | ||
[Description("8x MSAA")] | ||
X8 = 8 | ||
} | ||
|
||
public enum AnisotropicFilteringMode | ||
{ | ||
Default = -1, | ||
Disable = AnisotropicFiltering.Disable, | ||
Enable = AnisotropicFiltering.Enable, | ||
ForceEnable = AnisotropicFiltering.ForceEnable, | ||
} | ||
|
||
public enum RunInBackgroundMode | ||
{ | ||
Default = -1, | ||
No = 0, | ||
Yes = 1, | ||
} | ||
} | ||
} |