diff options
author | DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> | 2020-10-04 21:02:19 -0400 |
---|---|---|
committer | DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> | 2020-10-04 21:02:19 -0400 |
commit | 6a24fdcf34170ae927b1c0952c50b05131084911 (patch) | |
tree | 9a482c5d8111c7d677ba7d121f418d46714be3d2 /src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java | |
parent | fd4353e56faf69effedecebca0e1af233ecff4bb (diff) | |
download | PerspectiveModv4-6a24fdcf34170ae927b1c0952c50b05131084911.tar.gz PerspectiveModv4-6a24fdcf34170ae927b1c0952c50b05131084911.tar.bz2 PerspectiveModv4-6a24fdcf34170ae927b1c0952c50b05131084911.zip |
Bug Fixes and new config
- Particles now face camera
- Sk1er Modcore integration
- New config gui using Vigilance
- Invert pitch option
Diffstat (limited to 'src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java')
-rw-r--r-- | src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java b/src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java index d4b1922..3f15069 100644 --- a/src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java +++ b/src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java @@ -1,8 +1,42 @@ package me.djtheredstoner.perspectivemod.config; -public class PerspectiveModConfig { +import club.sk1er.vigilance.Vigilant; +import club.sk1er.vigilance.data.Property; +import club.sk1er.vigilance.data.PropertyType; +import java.io.File; + +public class PerspectiveModConfig extends Vigilant { + + @Property( + type = PropertyType.SWITCH, + name = "Perspective Mod", + category = "General", + subcategory = "General", + description = "Toggle Perspective Mod entirely." + ) public boolean modEnabled = true; + + @Property( + type = PropertyType.SWITCH, + name = "Hold Mode", + category = "General", + subcategory = "General", + description = "Return to normal perspective after releasing keybind." + ) public boolean holdMode = true; + @Property( + type = PropertyType.SWITCH, + name = "Invert Pitch", + category = "General", + subcategory = "General", + description = "Invert the pitch while in perspective (same as blc/lunar)." + ) + public boolean invertPitch = false; + + public PerspectiveModConfig() { + super(new File("./config/perspectivemodv4.toml")); + initialize(); + } } |