diff options
author | raaaaaven <168305416+raaaaaven@users.noreply.github.com> | 2024-07-15 19:49:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-15 20:49:13 +0200 |
commit | 88faa15a0dd554148f3fadcc8f3d2df741e87cde (patch) | |
tree | 7207b9e81a67c5493b15eb80a313e93b218f9d16 /src/main/java/at/hannibal2/skyhanni/config/features | |
parent | b7c7711d40a0676d530d7b8eb258ec946f8012ad (diff) | |
download | skyhanni-88faa15a0dd554148f3fadcc8f3d2df741e87cde.tar.gz skyhanni-88faa15a0dd554148f3fadcc8f3d2df741e87cde.tar.bz2 skyhanni-88faa15a0dd554148f3fadcc8f3d2df741e87cde.zip |
Feature: Reset Custom Wardrobe Settings (#2120)
Co-authored-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com>
Co-authored-by: raven <raveeeennnn@hotmail.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
2 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/ColorConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/ColorConfig.java index 20f928254..f088f72ea 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/ColorConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/ColorConfig.java @@ -1,11 +1,17 @@ package at.hannibal2.skyhanni.config.features.inventory.customwardrobe; +import at.hannibal2.skyhanni.features.inventory.wardrobe.CustomWardrobeReset; import com.google.gson.annotations.Expose; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorButton; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorColour; import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; public class ColorConfig { + @ConfigOption(name = "Reset to Default", desc = "Reset all custom wardrobe color settings to the default.") + @ConfigEditorButton(buttonText = "Reset") + public Runnable resetColor = CustomWardrobeReset::resetColor; + @Expose @ConfigOption(name = "Background", desc = "Color of the GUI background.") @ConfigEditorColour diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/SpacingConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/SpacingConfig.java index 13bf54207..4f9887348 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/SpacingConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/SpacingConfig.java @@ -1,12 +1,18 @@ package at.hannibal2.skyhanni.config.features.inventory.customwardrobe; +import at.hannibal2.skyhanni.features.inventory.wardrobe.CustomWardrobeReset; import com.google.gson.annotations.Expose; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorButton; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider; import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; import io.github.notenoughupdates.moulconfig.observer.Property; public class SpacingConfig { + @ConfigOption(name = "Reset to Default", desc = "Reset all custom wardrobe spacing settings to the default.") + @ConfigEditorButton(buttonText = "Reset") + public Runnable resetSpacing = CustomWardrobeReset::resetSpacing; + @Expose @ConfigOption(name = "Global Scale", desc = "Control the scale of the entirety of the wardrobe.") @ConfigEditorSlider( |