diff options
author | HiZe <super@hize.be> | 2024-06-22 09:51:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-22 09:51:55 +0200 |
commit | 42b3ba09916c32c70666991c8a3e479f07373a6f (patch) | |
tree | b729e579638512358461d7cf20d5c61bee059b6e /src/main/java/at/hannibal2/skyhanni/config/features | |
parent | 608372e88be6a33197397d1e3f5c962dc7fd7b73 (diff) | |
download | skyhanni-42b3ba09916c32c70666991c8a3e479f07373a6f.tar.gz skyhanni-42b3ba09916c32c70666991c8a3e479f07373a6f.tar.bz2 skyhanni-42b3ba09916c32c70666991c8a3e479f07373a6f.zip |
Add: Special stray rabbit screen flashing (#2040)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryRabbitWarningConfig.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryRabbitWarningConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryRabbitWarningConfig.java index 1377648d4..ce0ef8ed4 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryRabbitWarningConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryRabbitWarningConfig.java @@ -4,10 +4,13 @@ import at.hannibal2.skyhanni.utils.OSUtils; import com.google.gson.annotations.Expose; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorButton; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorColour; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDropdown; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorText; import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; import io.github.notenoughupdates.moulconfig.observer.Property; +import org.jetbrains.annotations.NotNull; public class ChocolateFactoryRabbitWarningConfig { @@ -34,6 +37,34 @@ public class ChocolateFactoryRabbitWarningConfig { @ConfigEditorSlider(minValue = 1, maxValue = 20, minStep = 1) public int repeatSound = 20; + @Expose + @ConfigOption(name = "Flash Screen", desc = "Choose the stray rabbit type to flash the screen for.") + @ConfigEditorDropdown + @NotNull + public FlashScreenTypeEntry flashScreenType = FlashScreenTypeEntry.SPECIAL; + + public enum FlashScreenTypeEntry { + SPECIAL("Special"), + ALL("All"), + NONE("None"), + ; + private final String str; + + FlashScreenTypeEntry(String str) { + this.str = str; + } + + @Override + public String toString() { + return str; + } + } + + @Expose + @ConfigOption(name = "Flash Color", desc = "Color of the screen when flashing") + @ConfigEditorColour + public String flashColor = "0:127:0:238:255"; + @ConfigOption(name = "Sounds", desc = "Click to open the list of available sounds.") @ConfigEditorButton(buttonText = "OPEN") public Runnable sounds = () -> OSUtils.openBrowser("https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/mapping-and-modding-tutorials/2213619-1-8-all-playsound-sound-arguments"); |