aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/config
diff options
context:
space:
mode:
authoringle <inglettronald@gmail.com>2022-10-03 00:04:02 -0500
committeringle <inglettronald@gmail.com>2022-10-03 00:04:02 -0500
commit03462869f508f549eff1971262d708ffc7d3bfbc (patch)
treec559e80cf9108d528d4b40c7261f51e3ff1b78ac /src/main/kotlin/dulkirmod/config
parent830d3185f6c0c4ac14c957c03e982badb40fa053 (diff)
downloadDulkirMod-03462869f508f549eff1971262d708ffc7d3bfbc.tar.gz
DulkirMod-03462869f508f549eff1971262d708ffc7d3bfbc.tar.bz2
DulkirMod-03462869f508f549eff1971262d708ffc7d3bfbc.zip
-Added Skip reverse 3rd person
-Implemented configs of Custom Animations
Diffstat (limited to 'src/main/kotlin/dulkirmod/config')
-rw-r--r--src/main/kotlin/dulkirmod/config/Config.kt34
1 files changed, 32 insertions, 2 deletions
diff --git a/src/main/kotlin/dulkirmod/config/Config.kt b/src/main/kotlin/dulkirmod/config/Config.kt
index f472ee1..1a50b88 100644
--- a/src/main/kotlin/dulkirmod/config/Config.kt
+++ b/src/main/kotlin/dulkirmod/config/Config.kt
@@ -1,11 +1,13 @@
package dulkirmod.config
+import dulkirmod.DulkirMod
import gg.essential.vigilance.Vigilant
import gg.essential.vigilance.data.Category
import gg.essential.vigilance.data.Property
import gg.essential.vigilance.data.PropertyType
import gg.essential.vigilance.data.SortingBehavior
import dulkirmod.DulkirMod.Companion.display
+import dulkirmod.utils.Utils
import java.awt.Color
import java.io.File
import java.util.function.Consumer
@@ -187,7 +189,7 @@ object Config : Vigilant(File("./config/dulkirmod/config.toml"), "DulkirMod", so
@Property(
type = PropertyType.BUTTON,
name = "Reset Item Values",
- description = "Will not visually update gui, but reopening settings menu will show default values",
+ description = "Vanilla Look! Closes Settings GUI.",
category = "Animations"
)
fun demoButton() {
@@ -201,9 +203,29 @@ object Config : Vigilant(File("./config/dulkirmod/config.toml"), "DulkirMod", so
doesScaleSwing = true
ignoreHaste = true
customSpeed = 0f
+ DulkirMod.mc.displayGuiScreen(null)
+ }
+
+ @Property(
+ type = PropertyType.BUTTON,
+ name = "Export Preset as String",
+ description = "Base64 representation of your current config - will copy to clipboard when pressed.",
+ category = "Animations"
+ )
+ fun presetString() {
+ Utils.animationConfigToString()
+ }
+
+ @Property(
+ type = PropertyType.BUTTON,
+ name = "Import Preset from Clipboard",
+ description = "Base64 representation of your config accepted from clipboard. Closes gui.",
+ category = "Animations"
+ )
+ fun stringToConfig() {
+ Utils.animationStringtoConfig()
}
- // CUSTOM ANIMATIONS
@Property(
type = PropertyType.SWITCH,
name = "JoinDungeon Command Confirmation",
@@ -212,6 +234,14 @@ object Config : Vigilant(File("./config/dulkirmod/config.toml"), "DulkirMod", so
)
var dungeonCommandConfirm = false
+ @Property(
+ type = PropertyType.SWITCH,
+ name = "Remove Selfie Camera",
+ description = "Get rid of pesky reverse third person!",
+ category = "General"
+ )
+ var noReverse3rdPerson = false
+
fun init() {
initialize()