the checkbox is now grouped together with the rest

This commit is contained in:
Abnormal 2024-10-20 10:02:18 -05:00 committed by Eric
parent ee53ccd327
commit 36df61ba9e

View file

@ -114,6 +114,9 @@ class PreferencesMenu extends Page
createPrefItemCheckbox('Auto Pause', 'If enabled, game automatically pauses when it loses focus.', function(value:Bool):Void {
Preferences.autoPause = value;
}, Preferences.autoPause);
createPrefItemCheckbox('Launch in Fullscreen', 'Automatically launch the game in fullscreen on startup', function(value:Bool):Void {
Preferences.autoFullscreen = value;
}, Preferences.autoFullscreen);
#if web
createPrefItemCheckbox('Unlocked Framerate', 'Enable to unlock the framerate', function(value:Bool):Void {
@ -124,10 +127,6 @@ class PreferencesMenu extends Page
Preferences.framerate = Std.int(value);
}, null, Preferences.framerate, 30, 300, 5, 0);
#end
createPrefItemCheckbox('Launch in Fullscreen', 'Automatically launch the game in fullscreen on startup', function(value:Bool):Void {
Preferences.autoFullscreen = value;
}, Preferences.autoFullscreen);
}
override function update(elapsed:Float):Void