From 42b3ba09916c32c70666991c8a3e479f07373a6f Mon Sep 17 00:00:00 2001 From: HiZe Date: Sat, 22 Jun 2024 09:51:55 +0200 Subject: Add: Special stray rabbit screen flashing (#2040) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../ChocolateFactoryRabbitWarningConfig.java | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/config') 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"); -- cgit