Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config File has a small mix up #10

Open
NiamhHyx opened this issue Aug 2, 2022 · 2 comments
Open

Config File has a small mix up #10

NiamhHyx opened this issue Aug 2, 2022 · 2 comments

Comments

@NiamhHyx
Copy link

NiamhHyx commented Aug 2, 2022

Set window mode. 1 = Fullscreen, 2 = Borderless, 3 = Windowed.
Setting type: Int32
Default value: 1
Acceptable value range: From 1 to 3
WindowMode = #

1 is actually Borderless and 2 is Fullscreen

@Lyall
Copy link
Owner

Lyall commented Aug 4, 2022

Hmm, they are actually correctly labelled. Though in my testing it looks like both 1 and 2 produce a borderless-like result and 3 is windowed correctly. Perhaps this is a quirk of Unity?

iWindowMode = Config.Bind("Set Custom Resolution",
                                "WindowMode",
                                 1,
                                new ConfigDescription("Set window mode. 1 = Fullscreen, 2 = Borderless, 3 = Windowed.",
                                new AcceptableValueRange<int>(1, 3)));
BootOption.WindowMode fullscreenMode;
                switch (iWindowMode.Value)
                {
                    case 1: 
                        fullscreenMode = BootOption.WindowMode.FullScreen;
                        break;
                    case 2:
                        fullscreenMode = BootOption.WindowMode.Borderless;
                        break;
                    case 3:
                        fullscreenMode = BootOption.WindowMode.Window;
                        break;
                    default:
                        fullscreenMode = BootOption.WindowMode.FullScreen;
                        break;
                }

@NiamhHyx
Copy link
Author

NiamhHyx commented Aug 5, 2022

ahh unity... explains a lot of the issues with this game a little better realizing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants