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

[ENHANCEMENT] Preferences Menu Pages #4081

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'develop' into preference-pages
  • Loading branch information
KoloInDaCrib authored Feb 18, 2025
commit 430e1e73678feb83cb0446e7a0793047f5db3a26
14 changes: 11 additions & 3 deletions source/funkin/ui/options/PreferencesMenu.hx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class PreferencesMenu extends Page
Preferences.unlockedFramerate = cast value;
},
defaultValue: Preferences.unlockedFramerate
}
},
#else
{
type: "number",
Expand All @@ -96,8 +96,17 @@ class PreferencesMenu extends Page
min: 30,
max: 300,
step: 5
}
},
#end
{
type: "checkbox",
name: 'Launch in Fullscreen',
desc: 'Automatically launch the game in fullscreen on startup',
onChange: function(value:Dynamic) {
Preferences.autoFullscreen = cast value;
},
defaultValue: Preferences.autoFullscreen
}
];

public var preferencePages:Array<PreferencePageData> = [
Expand Down Expand Up @@ -201,7 +210,6 @@ class PreferencesMenu extends Page
*/
function createPrefItems():Void
{

// Clean up before generating.
while (itemsArray.length > 0)
{
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.