-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Bits Gained Chat Message (#1487)
- Loading branch information
Showing
7 changed files
with
52 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/main/java/at/hannibal2/skyhanni/config/features/misc/BitsConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package at.hannibal2.skyhanni.config.features.misc; | ||
|
||
import at.hannibal2.skyhanni.config.FeatureToggle; | ||
import com.google.gson.annotations.Expose; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; | ||
|
||
public class BitsConfig { | ||
@Expose | ||
@ConfigOption(name = "Enable No Bits Warning", desc = "Alerts you when you have no bits available.") | ||
@ConfigEditorBoolean | ||
@FeatureToggle | ||
public boolean enableWarning = true; | ||
|
||
@Expose | ||
@ConfigOption(name = "Notification Sound", desc = "Plays a notification sound when you get a warning.") | ||
@ConfigEditorBoolean | ||
public boolean notificationSound = true; | ||
|
||
@Expose | ||
@ConfigOption(name = "Bits Gain Chat Message", desc = "Shows a chat message when you gain bits.") | ||
@ConfigEditorBoolean | ||
@FeatureToggle | ||
public boolean bitsGainChatMessage = true; | ||
|
||
@Expose | ||
@ConfigOption(name = "Threshold", desc = "The amount of bits you need to have to not get a warning.") | ||
@ConfigEditorSlider(minValue = 0, maxValue = 1000, minStep = 1) | ||
public int threshold = 400; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
src/main/java/at/hannibal2/skyhanni/config/features/misc/NoBitsWarningConfig.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters