you may now disable languages.

This commit is contained in:
Frakits
2025-08-01 13:16:08 +03:00
parent 1ed34f0b1f
commit 5f7cea4980
4 changed files with 6 additions and 1 deletions
+1
View File
@@ -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 = "";
+1 -1
View File
@@ -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();
@@ -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=""
+2
View File
@@ -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;