itemcharge: Add basket/fix sack (#1815)

itemcharge: Add basket/fix sack
This commit is contained in:
ST0NEWALL
2019-10-22 18:17:26 -04:00
committed by GitHub
3 changed files with 20 additions and 4 deletions

View File

@@ -472,14 +472,25 @@ public interface ItemChargeConfig extends Config
return true;
}
@ConfigItem(
keyName = "showBasketCharges",
name = "Show Basket Quantity",
description = "Configures if the number of fruit in a basket is shown",
position = 26
)
default boolean showBasketCharges()
{
return true;
}
@ConfigItem(
keyName = "showInfoboxes",
name = "Show Infoboxes",
description = "Configures whether to show an infobox equipped charge items",
position = 26
position = 27
)
default boolean showInfoboxes()
{
return false;
}
}
}

View File

@@ -36,9 +36,11 @@ import static net.runelite.client.plugins.itemcharges.ItemChargeType.ABYSSAL_BRA
import static net.runelite.client.plugins.itemcharges.ItemChargeType.BELLOWS;
import static net.runelite.client.plugins.itemcharges.ItemChargeType.FUNGICIDE_SPRAY;
import static net.runelite.client.plugins.itemcharges.ItemChargeType.IMPBOX;
import static net.runelite.client.plugins.itemcharges.ItemChargeType.SACK;
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 net.runelite.client.ui.FontManager;
import net.runelite.client.ui.overlay.WidgetItemOverlay;
import net.runelite.client.ui.overlay.components.TextComponent;
@@ -160,6 +162,8 @@ class ItemChargeOverlay extends WidgetItemOverlay
|| (type == WATERCAN && !plugin.isShowWateringCanCharges())
|| (type == WATERSKIN && !plugin.isShowWaterskinCharges())
|| (type == BELLOWS && !plugin.isShowBellowCharges())
|| (type == FRUIT_BASKET && !plugin.isShowBasketCharges())
|| (type == SACK && !plugin.isShowSackCharges())
|| (type == ABYSSAL_BRACELET && !plugin.isShowAbyssalBraceletCharges()))
{
return;
@@ -180,7 +184,7 @@ class ItemChargeOverlay extends WidgetItemOverlay
{
return plugin.isShowTeleportCharges() || plugin.isShowDodgyCount() || plugin.isShowFungicideCharges()
|| plugin.isShowImpCharges() || plugin.isShowWateringCanCharges() || plugin.isShowWaterskinCharges()
|| plugin.isShowBellowCharges() || plugin.isShowAbyssalBraceletCharges() || plugin.isShowExplorerRingCharges()
|| plugin.isShowBellowCharges() || plugin.isShowBasketCharges() || plugin.isShowSackCharges() || plugin.isShowAbyssalBraceletCharges() || plugin.isShowExplorerRingCharges()
|| plugin.isShowRingOfForgingCount();
}
}
}

View File

@@ -956,6 +956,7 @@ public class ItemChargePlugin extends Plugin
this.showXericTalismanCharges = config.showXericTalismanCharges();
this.showrecoil = config.showrecoil();
this.chronicle = config.chronicle();
this.showBasketCharges = config.showBasketCharges();
this.showSackCharges = config.showSackCharges();
}
}