diff --git a/src/main/java/eu/midnightdust/yaytris/Settings.java b/src/main/java/eu/midnightdust/yaytris/Settings.java index 092d70c..259deac 100644 --- a/src/main/java/eu/midnightdust/yaytris/Settings.java +++ b/src/main/java/eu/midnightdust/yaytris/Settings.java @@ -4,14 +4,22 @@ import eu.midnightdust.yaytris.util.Difficulty; import eu.midnightdust.yaytris.util.Language; import eu.midnightdust.yaytris.util.NightJson; +import java.util.Arrays; + public class Settings { private static final NightJson json = new NightJson(Settings.class, "tetris_settings.json5"); + public static NightJson.Comment c1 = new NightJson.Comment("Volume of theme music (0-100)"); public static int musicVolume = 100; + public static NightJson.Comment c2 = new NightJson.Comment("Volume of sound effects (0-100)"); public static int soundVolume = 100; + public static NightJson.Comment c3 = new NightJson.Comment("Amount the user interface should be scaled"); public static float guiScale = 3.f; + public static NightJson.Comment c4 = new NightJson.Comment("Whether speed should scale with level (true/false)"); public static boolean shouldScaleSpeed = true; + public static NightJson.Comment c5 = new NightJson.Comment("One of %s", Arrays.toString(Difficulty.values())); public static Difficulty difficulty = Difficulty.NORMAL; + public static NightJson.Comment c6 = new NightJson.Comment("One of %s", Arrays.toString(Language.values())); public static Language language = Language.ENGLISH; public static void load() { diff --git a/tetris_settings.json5 b/tetris_settings.json5 index de14924..7100a5d 100644 --- a/tetris_settings.json5 +++ b/tetris_settings.json5 @@ -1,8 +1,20 @@ { + + // Volume of theme music (0-100) "musicVolume": 100, + + // Volume of sound effects (0-100) "soundVolume": 100, - "guiScale": 6.0, + + // Amount the user interface should be scaled + "guiScale": 4.49, + + // Whether speed should scale with level (true/false) "shouldScaleSpeed": true, + + // One of [Noob, Easy, Normal, Hard, Extreme, WTF] "difficulty": "Normal", + + // One of [English, Deutsch] "language": "Deutsch" } \ No newline at end of file