Add bonus notifications with configs

This commit is contained in:
Patrick
2022-06-23 22:47:20 +04:00
parent 61b4b572a4
commit 6481791892
2 changed files with 99 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import net.runelite.client.config.ConfigSection;
@ConfigGroup(EasyGiantsFoundryConfig.GROUP)
public interface EasyGiantsFoundryConfig extends Config {
String GROUP = "easygiantsfoundry";
String SOUND_ID = "soundID";
@ConfigSection(
name = "Notifications",
@@ -38,6 +39,39 @@ public interface EasyGiantsFoundryConfig extends Config {
return true;
}
@ConfigItem(
keyName = "bonusNotification",
name = "Notify bonus",
description = "Notifies when bonus appears",
position = 2,
section = notificationList
)
default boolean bonusNotification() {
return false;
}
@ConfigItem(
keyName = "bonusSound",
name = "Bonus sound",
description = "Plays a sound when bonus appears",
position = 3,
section = notificationList
)
default boolean bonusSoundNotify() {
return true;
}
@ConfigItem(
keyName = SOUND_ID,
name = "Bonus sound ID",
description = "Sound Effect ID to play when bonus appears",
position = 4,
section = notificationList
)
default int soundId() {
return 4212;
}
@ConfigSection(
name = "Highlights",