you may now disable languages.
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
@@ -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=""
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user