Add a reset all settings button
This commit is contained in:
@@ -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<Boolean> resetAllSettings = new ConfigEntry.Builder<Boolean>()
|
||||
.set(false)
|
||||
.setAppearance(ConfigEntryAppearance.ONLY_IN_GUI)
|
||||
//.addListener(null) // TODO add listener
|
||||
.build();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user