diff --git a/core/src/main/java/com/seibel/lod/core/config/Config.java b/core/src/main/java/com/seibel/lod/core/config/Config.java index 7d66f3419..44600b2e6 100644 --- a/core/src/main/java/com/seibel/lod/core/config/Config.java +++ b/core/src/main/java/com/seibel/lod/core/config/Config.java @@ -114,11 +114,10 @@ public class Config public static ConfigCategory advanced = new ConfigCategory.Builder().set(Advanced.class).build(); + public static ConfigCategory resetSettingsConfirmation = new ConfigCategory.Builder().set(ResetConfirmation.class).build(); public static class Advanced { - public static ConfigUIComment advancedConfigScreenNote = new ConfigUIComment(); - public static ConfigCategory graphics = new ConfigCategory.Builder().set(Graphics.class).build(); public static ConfigCategory worldGenerator = new ConfigCategory.Builder().set(WorldGenerator.class).build(); public static ConfigCategory multiplayer = new ConfigCategory.Builder().set(Multiplayer.class).build(); @@ -990,7 +989,7 @@ public class Config .build(); - // can be set to public to show in the config file and UI + // can be set to public inorder to show in the config file and UI private static ConfigCategory exampleConfigScreen = new ConfigCategory.Builder() .set(ExampleConfigScreen.class) .build(); @@ -1059,5 +1058,17 @@ public class Config } + public static class ResetConfirmation + { + public static ConfigUIComment resetConfirmationNote = new ConfigUIComment(); + + public static ConfigEntry resetAllSettings = new ConfigEntry.Builder() + .set(false) + .setAppearance(ConfigEntryAppearance.ONLY_IN_GUI) + //.addListener(null) // TODO add listener + .build(); + + } + } } diff --git a/core/src/main/resources/assets/lod/lang/en_us.json b/core/src/main/resources/assets/lod/lang/en_us.json index 226ac4ee0..6e56c083b 100644 --- a/core/src/main/resources/assets/lod/lang/en_us.json +++ b/core/src/main/resources/assets/lod/lang/en_us.json @@ -64,7 +64,7 @@ "Will modify a number of settings to quickly change how many CPU resources Distant Horizons' is allowed to use. \n\nIncreasing this setting will improve Distant Generator speed and LOD loading speed, \nbut will also increase CPU/memory usage and may introduce stuttering.", "lod.config.client.optionsButton": - "Show options button", + "Show The Options Button", "lod.config.client.optionsButton.@tooltip": "Show the config button to the left of the fov button", @@ -73,9 +73,6 @@ "lod.config.client.advanced": "Advanced options", - "lod.config.client.advanced.advancedConfigScreenNote": - "", - "lod.config.client.advanced.graphics": "Graphics", "lod.config.client.advanced.graphics.quality": @@ -422,7 +419,16 @@ "Linkable test", "lod.config.client.advanced.debugging.debugConfigScreen.linkableTest.@tooltip": "The value of this should be the same as in Category Test", - + + + "lod.config.client.resetSettingsConfirmation": + "Reset All Settings?", + + "lod.config.client.resetSettingsConfirmation.resetConfirmationNote": + "Are you sure? This cannot be undone.", + "lod.config.client.resetSettingsConfirmation.resetAllSettings": + "Reset All Settings", + "lod.config.enum.EQuickQuality.CUSTOM":