Add item charges for baskets and sacks (#9212)
This commit is contained in:
@@ -173,10 +173,10 @@ public interface ItemChargeConfig extends Config
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "showBellowCharges",
|
||||
name = "Show Bellow Charges",
|
||||
description = "Configures if ogre bellow item charge is shown",
|
||||
position = 12
|
||||
keyName = "showBellowCharges",
|
||||
name = "Show Bellow Charges",
|
||||
description = "Configures if ogre bellow item charge is shown",
|
||||
position = 12
|
||||
)
|
||||
default boolean showBellowCharges()
|
||||
{
|
||||
@@ -184,10 +184,32 @@ public interface ItemChargeConfig extends Config
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "showAbyssalBraceletCharges",
|
||||
name = "Show Abyssal Bracelet Charges",
|
||||
description = "Configures if abyssal bracelet item charge is shown",
|
||||
position = 13
|
||||
keyName = "showBasketCharges",
|
||||
name = "Show Basket Charges",
|
||||
description = "Configures if fruit basket item charge is shown",
|
||||
position = 13
|
||||
)
|
||||
default boolean showBasketCharges()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "showSackCharges",
|
||||
name = "Show Sack Charges",
|
||||
description = "Configures if sack item charge is shown",
|
||||
position = 14
|
||||
)
|
||||
default boolean showSackCharges()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "showAbyssalBraceletCharges",
|
||||
name = "Show Abyssal Bracelet Charges",
|
||||
description = "Configures if abyssal bracelet item charge is shown",
|
||||
position = 15
|
||||
)
|
||||
default boolean showAbyssalBraceletCharges()
|
||||
{
|
||||
@@ -198,7 +220,7 @@ public interface ItemChargeConfig extends Config
|
||||
keyName = "recoilNotification",
|
||||
name = "Ring of Recoil Notification",
|
||||
description = "Configures if the ring of recoil breaking notification is shown",
|
||||
position = 14
|
||||
position = 16
|
||||
)
|
||||
default boolean recoilNotification()
|
||||
{
|
||||
@@ -209,7 +231,7 @@ public interface ItemChargeConfig extends Config
|
||||
keyName = "showBindingNecklaceCharges",
|
||||
name = "Show Binding Necklace Charges",
|
||||
description = "Configures if binding necklace item charge is shown",
|
||||
position = 15
|
||||
position = 17
|
||||
)
|
||||
default boolean showBindingNecklaceCharges()
|
||||
{
|
||||
@@ -238,7 +260,7 @@ public interface ItemChargeConfig extends Config
|
||||
keyName = "bindingNotification",
|
||||
name = "Binding Necklace Notification",
|
||||
description = "Configures if the binding necklace breaking notification is shown",
|
||||
position = 16
|
||||
position = 18
|
||||
)
|
||||
default boolean bindingNotification()
|
||||
{
|
||||
@@ -249,7 +271,7 @@ public interface ItemChargeConfig extends Config
|
||||
keyName = "showExplorerRingCharges",
|
||||
name = "Show Explorer's Ring Alch Charges",
|
||||
description = "Configures if explorer's ring alchemy charges are shown",
|
||||
position = 17
|
||||
position = 19
|
||||
)
|
||||
default boolean showExplorerRingCharges()
|
||||
{
|
||||
@@ -278,7 +300,7 @@ public interface ItemChargeConfig extends Config
|
||||
keyName = "showInfoboxes",
|
||||
name = "Show Infoboxes",
|
||||
description = "Configures whether to show an infobox equipped charge items",
|
||||
position = 18
|
||||
position = 20
|
||||
)
|
||||
default boolean showInfoboxes()
|
||||
{
|
||||
|
||||
@@ -38,6 +38,8 @@ 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.FRUIT_BASKET;
|
||||
import static net.runelite.client.plugins.itemcharges.ItemChargeType.SACK;
|
||||
import net.runelite.client.ui.FontManager;
|
||||
import net.runelite.client.ui.overlay.WidgetItemOverlay;
|
||||
import net.runelite.client.ui.overlay.components.TextComponent;
|
||||
@@ -109,6 +111,8 @@ class ItemChargeOverlay extends WidgetItemOverlay
|
||||
|| (type == WATERCAN && !config.showWateringCanCharges())
|
||||
|| (type == WATERSKIN && !config.showWaterskinCharges())
|
||||
|| (type == BELLOWS && !config.showBellowCharges())
|
||||
|| (type == FRUIT_BASKET && !config.showBasketCharges())
|
||||
|| (type == SACK && !config.showSackCharges())
|
||||
|| (type == ABYSSAL_BRACELET && !config.showAbyssalBraceletCharges()))
|
||||
{
|
||||
return;
|
||||
@@ -129,6 +133,7 @@ class ItemChargeOverlay extends WidgetItemOverlay
|
||||
{
|
||||
return config.showTeleportCharges() || config.showDodgyCount() || config.showFungicideCharges()
|
||||
|| config.showImpCharges() || config.showWateringCanCharges() || config.showWaterskinCharges()
|
||||
|| config.showBellowCharges() || config.showAbyssalBraceletCharges() || config.showExplorerRingCharges();
|
||||
|| config.showBellowCharges() || config.showBasketCharges() || config.showSackCharges()
|
||||
|| config.showAbyssalBraceletCharges() || config.showExplorerRingCharges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,5 +35,7 @@ enum ItemChargeType
|
||||
WATERSKIN,
|
||||
DODGY_NECKLACE,
|
||||
BINDING_NECKLACE,
|
||||
EXPLORER_RING
|
||||
EXPLORER_RING,
|
||||
FRUIT_BASKET,
|
||||
SACK
|
||||
}
|
||||
|
||||
@@ -37,6 +37,8 @@ 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.FRUIT_BASKET;
|
||||
import static net.runelite.client.plugins.itemcharges.ItemChargeType.SACK;
|
||||
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
@@ -47,6 +49,31 @@ enum ItemWithCharge
|
||||
ABRACE3(ABYSSAL_BRACELET, ABYSSAL_BRACELET3, 3),
|
||||
ABRACE4(ABYSSAL_BRACELET, ABYSSAL_BRACELET4, 4),
|
||||
ABRACE5(ABYSSAL_BRACELET, ABYSSAL_BRACELET5, 5),
|
||||
BASKET_APPLES1(FRUIT_BASKET, APPLES1, 1),
|
||||
BASKET_APPLES2(FRUIT_BASKET, APPLES2, 2),
|
||||
BASKET_APPLES3(FRUIT_BASKET, APPLES3, 3),
|
||||
BASKET_APPLES4(FRUIT_BASKET, APPLES4, 4),
|
||||
BASKET_APPLES5(FRUIT_BASKET, APPLES5, 5),
|
||||
BASKET_BANANAS1(FRUIT_BASKET, BANANAS1, 1),
|
||||
BASKET_BANANAS2(FRUIT_BASKET, BANANAS2, 2),
|
||||
BASKET_BANANAS3(FRUIT_BASKET, BANANAS3, 3),
|
||||
BASKET_BANANAS4(FRUIT_BASKET, BANANAS4, 4),
|
||||
BASKET_BANANAS5(FRUIT_BASKET, BANANAS5, 5),
|
||||
BASKET_ORANGES1(FRUIT_BASKET, ORANGES1, 1),
|
||||
BASKET_ORANGES2(FRUIT_BASKET, ORANGES2, 2),
|
||||
BASKET_ORANGES3(FRUIT_BASKET, ORANGES3, 3),
|
||||
BASKET_ORANGES4(FRUIT_BASKET, ORANGES4, 4),
|
||||
BASKET_ORANGES5(FRUIT_BASKET, ORANGES5, 5),
|
||||
BASKET_STRAWBERRIES1(FRUIT_BASKET, STRAWBERRIES1, 1),
|
||||
BASKET_STRAWBERRIES2(FRUIT_BASKET, STRAWBERRIES2, 2),
|
||||
BASKET_STRAWBERRIES3(FRUIT_BASKET, STRAWBERRIES3, 3),
|
||||
BASKET_STRAWBERRIES4(FRUIT_BASKET, STRAWBERRIES4, 4),
|
||||
BASKET_STRAWBERRIES5(FRUIT_BASKET, STRAWBERRIES5, 5),
|
||||
BASKET_TOMATOES1(FRUIT_BASKET, TOMATOES1, 1),
|
||||
BASKET_TOMATOES2(FRUIT_BASKET, TOMATOES2, 2),
|
||||
BASKET_TOMATOES3(FRUIT_BASKET, TOMATOES3, 3),
|
||||
BASKET_TOMATOES4(FRUIT_BASKET, TOMATOES4, 4),
|
||||
BASKET_TOMATOES5(FRUIT_BASKET, TOMATOES5, 5),
|
||||
BELLOWS0(BELLOWS, OGRE_BELLOWS, 0),
|
||||
BELLOWS1(BELLOWS, OGRE_BELLOWS_1, 1),
|
||||
BELLOWS2(BELLOWS, OGRE_BELLOWS_2, 2),
|
||||
@@ -144,6 +171,36 @@ enum ItemWithCharge
|
||||
ROW3(TELEPORT, RING_OF_WEALTH_3, 3),
|
||||
ROW4(TELEPORT, RING_OF_WEALTH_4, 4),
|
||||
ROW5(TELEPORT, RING_OF_WEALTH_5, 5),
|
||||
SACK_CABBAGES1(SACK, CABBAGES1, 1),
|
||||
SACK_CABBAGES2(SACK, CABBAGES2, 2),
|
||||
SACK_CABBAGES3(SACK, CABBAGES3, 3),
|
||||
SACK_CABBAGES4(SACK, CABBAGES4, 4),
|
||||
SACK_CABBAGES5(SACK, CABBAGES5, 5),
|
||||
SACK_CABBAGES6(SACK, CABBAGES6, 6),
|
||||
SACK_CABBAGES7(SACK, CABBAGES7, 7),
|
||||
SACK_CABBAGES8(SACK, CABBAGES8, 8),
|
||||
SACK_CABBAGES9(SACK, CABBAGES9, 9),
|
||||
SACK_CABBAGES10(SACK, CABBAGES10, 10),
|
||||
SACK_ONIONS1(SACK, ONIONS1, 1),
|
||||
SACK_ONIONS2(SACK, ONIONS2, 2),
|
||||
SACK_ONIONS3(SACK, ONIONS3, 3),
|
||||
SACK_ONIONS4(SACK, ONIONS4, 4),
|
||||
SACK_ONIONS5(SACK, ONIONS5, 5),
|
||||
SACK_ONIONS6(SACK, ONIONS6, 6),
|
||||
SACK_ONIONS7(SACK, ONIONS7, 7),
|
||||
SACK_ONIONS8(SACK, ONIONS8, 8),
|
||||
SACK_ONIONS9(SACK, ONIONS9, 9),
|
||||
SACK_ONIONS10(SACK, ONIONS10, 10),
|
||||
SACK_POTATOES1(SACK, POTATOES1, 1),
|
||||
SACK_POTATOES2(SACK, POTATOES2, 2),
|
||||
SACK_POTATOES3(SACK, POTATOES3, 3),
|
||||
SACK_POTATOES4(SACK, POTATOES4, 4),
|
||||
SACK_POTATOES5(SACK, POTATOES5, 5),
|
||||
SACK_POTATOES6(SACK, POTATOES6, 6),
|
||||
SACK_POTATOES7(SACK, POTATOES7, 7),
|
||||
SACK_POTATOES8(SACK, POTATOES8, 8),
|
||||
SACK_POTATOES9(SACK, POTATOES9, 9),
|
||||
SACK_POTATOES10(SACK, POTATOES10, 10),
|
||||
SKILLS1(TELEPORT, SKILLS_NECKLACE1, 1),
|
||||
SKILLS2(TELEPORT, SKILLS_NECKLACE2, 2),
|
||||
SKILLS3(TELEPORT, SKILLS_NECKLACE3, 3),
|
||||
|
||||
Reference in New Issue
Block a user