Add ogre bellows to item charges plugin (#5323)
This commit is contained in:
@@ -171,11 +171,22 @@ public interface ItemChargeConfig extends Config
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "showBellowCharges",
|
||||
name = "Show Bellow Charges",
|
||||
description = "Configures if ogre bellow item charge is shown",
|
||||
position = 12
|
||||
)
|
||||
default boolean showBellowCharges()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "recoilNotification",
|
||||
name = "Ring of Recoil Notification",
|
||||
description = "Configures if the ring of recoil breaking notification is shown",
|
||||
position = 12
|
||||
position = 13
|
||||
)
|
||||
default boolean recoilNotification()
|
||||
{
|
||||
|
||||
@@ -44,6 +44,7 @@ import static net.runelite.client.plugins.itemcharges.ItemChargeType.IMPBOX;
|
||||
import static net.runelite.client.plugins.itemcharges.ItemChargeType.TELEPORT;
|
||||
import static net.runelite.client.plugins.itemcharges.ItemChargeType.WATERCAN;
|
||||
import static net.runelite.client.plugins.itemcharges.ItemChargeType.WATERSKIN;
|
||||
import static net.runelite.client.plugins.itemcharges.ItemChargeType.BELLOWS;
|
||||
import net.runelite.client.ui.FontManager;
|
||||
import net.runelite.client.ui.overlay.Overlay;
|
||||
import net.runelite.client.ui.overlay.OverlayLayer;
|
||||
@@ -102,7 +103,8 @@ class ItemChargeOverlay extends Overlay
|
||||
|| (type == FUNGICIDE_SPRAY && !config.showFungicideCharges())
|
||||
|| (type == IMPBOX && !config.showImpCharges())
|
||||
|| (type == WATERCAN && !config.showWateringCanCharges())
|
||||
|| (type == WATERSKIN && !config.showWaterskinCharges()))
|
||||
|| (type == WATERSKIN && !config.showWaterskinCharges())
|
||||
|| (type == BELLOWS && !config.showBellowCharges()))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -156,6 +158,7 @@ class ItemChargeOverlay extends Overlay
|
||||
private boolean displayOverlay()
|
||||
{
|
||||
return config.showTeleportCharges() || config.showDodgyCount() || config.showFungicideCharges()
|
||||
|| config.showImpCharges() || config.showWateringCanCharges() || config.showWaterskinCharges();
|
||||
|| config.showImpCharges() || config.showWateringCanCharges() || config.showWaterskinCharges()
|
||||
|| config.showBellowCharges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ package net.runelite.client.plugins.itemcharges;
|
||||
|
||||
enum ItemChargeType
|
||||
{
|
||||
BELLOWS,
|
||||
FUNGICIDE_SPRAY,
|
||||
IMPBOX,
|
||||
TELEPORT,
|
||||
|
||||
@@ -35,11 +35,16 @@ import static net.runelite.client.plugins.itemcharges.ItemChargeType.IMPBOX;
|
||||
import static net.runelite.client.plugins.itemcharges.ItemChargeType.TELEPORT;
|
||||
import static net.runelite.client.plugins.itemcharges.ItemChargeType.WATERCAN;
|
||||
import static net.runelite.client.plugins.itemcharges.ItemChargeType.WATERSKIN;
|
||||
import static net.runelite.client.plugins.itemcharges.ItemChargeType.BELLOWS;
|
||||
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
enum ItemWithCharge
|
||||
{
|
||||
BELLOWS0(BELLOWS, OGRE_BELLOWS, 0),
|
||||
BELLOWS1(BELLOWS, OGRE_BELLOWS_1, 1),
|
||||
BELLOWS2(BELLOWS, OGRE_BELLOWS_2, 2),
|
||||
BELLOWS3(BELLOWS, OGRE_BELLOWS_3, 3),
|
||||
BURNING1(TELEPORT, BURNING_AMULET1, 1),
|
||||
BURNING2(TELEPORT, BURNING_AMULET2, 2),
|
||||
BURNING3(TELEPORT, BURNING_AMULET3, 3),
|
||||
|
||||
Reference in New Issue
Block a user