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