Add config option to reverse the spell switching scroll direction

This commit is contained in:
Electroblob
2018-07-02 22:56:04 +01:00
parent af01beb583
commit 7c7a69c755
4 changed files with 16 additions and 3 deletions
@@ -158,6 +158,8 @@ public final class Settings {
* while sneaking.
*/
public boolean enableShiftScrolling = true;
/** <b>[Client-only]</b> Whether to reverse the spell switching scroll direction.*/
public boolean reverseScrollDirection = false;
// Display
/** <b>[Client-only]</b> Whether to show summoned creatures' names and owners above their heads. */
@@ -459,6 +461,12 @@ public final class Settings {
property.setRequiresWorldRestart(false);
enableShiftScrolling = property.getBoolean();
propOrder.add(property.getName());
property = config.get(CLIENT_CATEGORY, "reverseScrollDirection", true, "Whether to reverse the scroll direction used to switch between spells on a wand while sneaking.");
property.setLanguageKey("config." + Wizardry.MODID + ".reverse_scroll_direction");
property.setRequiresWorldRestart(false);
reverseScrollDirection = property.getBoolean();
propOrder.add(property.getName());
property = config.get(CLIENT_CATEGORY, "spellHUDPosition", GuiPosition.BOTTOM_LEFT.name, "The position of the spell HUD.", GuiPosition.names);
property.setLanguageKey("config." + Wizardry.MODID + ".spell_hud_position");