Slightly better config

This commit is contained in:
JFronny 2020-07-18 19:03:55 +02:00
parent 72e196815e
commit a6a77a029d
2 changed files with 1297 additions and 1256 deletions

1371
AOF.cache

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,8 @@ package io.gitlab.jfronny.translater;
import me.sargunvohra.mcmods.autoconfig1u.ConfigData;
import me.sargunvohra.mcmods.autoconfig1u.annotation.Config;
import me.sargunvohra.mcmods.autoconfig1u.shadowed.blue.endless.jankson.Comment;
import me.sargunvohra.mcmods.autoconfig1u.annotation.ConfigEntry.Gui.EnumHandler;
import me.sargunvohra.mcmods.autoconfig1u.annotation.ConfigEntry.Gui.RequiresRestart;
@Config(name = "TranslaterCF")
public class Cfg implements ConfigData {
@ -15,8 +17,10 @@ public class Cfg implements ConfigData {
@Comment("The language to translate to - Leave empty for auto-detection (might break text even more)")
public String targetLanguage = "en";
@Comment("Significantly slows down the loading time but gives a visual of the progress. Values: Full, Console, None")
@EnumHandler(option = EnumHandler.EnumDisplayOption.BUTTON)
public progressMode renderProgress = progressMode.None;
@Comment("Use this if something is broken. This initiate the regeneration of the cache")
@RequiresRestart
public boolean forceRegenerate = false;
public enum progressMode {