diff --git a/source/funkin/backend/system/Flags.hx b/source/funkin/backend/system/Flags.hx index f60fc621..1973f357 100644 --- a/source/funkin/backend/system/Flags.hx +++ b/source/funkin/backend/system/Flags.hx @@ -185,6 +185,7 @@ class Flags { public static var DISABLE_EDITORS:Bool = false; public static var DISABLE_WARNING_SCREEN:Bool = true; public static var DISABLE_TRANSITIONS:Bool = false; + public static var DISABLE_LANGUAGES:Bool = false; @:also(funkin.backend.MusicBeatTransition.script) public static var DEFAULT_TRANSITION_SCRIPT:String = ""; diff --git a/source/funkin/backend/system/MainState.hx b/source/funkin/backend/system/MainState.hx index 0d415f26..1788db20 100644 --- a/source/funkin/backend/system/MainState.hx +++ b/source/funkin/backend/system/MainState.hx @@ -105,7 +105,7 @@ class MainState extends FlxState { Flags.load(); TranslationUtil.findAllLanguages(); - TranslationUtil.setLanguage(); + TranslationUtil.setLanguage(Flags.DISABLE_LANGUAGES ? Flags.DEFAULT_LANGUAGE : null); ModsFolder.onModSwitch.dispatch(ModsFolder.currentModFolder); // Loads global.hx MusicBeatTransition.script = Flags.DEFAULT_TRANSITION_SCRIPT; WindowUtils.resetTitle(); diff --git a/source/funkin/editors/ModConfigWarning.hx b/source/funkin/editors/ModConfigWarning.hx index 3a903480..d177c9c8 100644 --- a/source/funkin/editors/ModConfigWarning.hx +++ b/source/funkin/editors/ModConfigWarning.hx @@ -31,6 +31,8 @@ MOD_ICON="path/to/icon.png" DISABLE_WARNING_SCREEN=true # Set this to false if you want to bring back the warning state (prior to 1.0.0) # NOTE: Beta warning state has been renamed from BetaWarningState.hx to WarningState.hx +DISABLE_LANGUAGES=true +# Some people might not translate their mods, but if you do then you may set this to false [Discord] MOD_DISCORD_CLIENT_ID="" diff --git a/source/funkin/options/OptionsMenu.hx b/source/funkin/options/OptionsMenu.hx index 79eab35a..10484ce1 100644 --- a/source/funkin/options/OptionsMenu.hx +++ b/source/funkin/options/OptionsMenu.hx @@ -61,6 +61,8 @@ class OptionsMenu extends TreeMenu { bg.scrollFactor.set(); updateBG(); + for (i in mainOptions) if (i.name == "optionsTree.language-name" && Flags.DISABLE_LANGUAGES) mainOptions.remove(i); + addMenu(new TreeMenuScreen('optionsMenu.header.title', 'optionsMenu.header.desc', [for (o in mainOptions) new TextOption(o.name, o.desc, o.suffix != null ? o.suffix : " >", () -> { if (o.substate != null) { persistentUpdate = false;