itemcharge: Add basket/fix sack (#1815)
itemcharge: Add basket/fix sack
This commit is contained in:
@@ -472,14 +472,25 @@ public interface ItemChargeConfig extends Config
|
|||||||
return true;
|
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(
|
@ConfigItem(
|
||||||
keyName = "showInfoboxes",
|
keyName = "showInfoboxes",
|
||||||
name = "Show Infoboxes",
|
name = "Show Infoboxes",
|
||||||
description = "Configures whether to show an infobox equipped charge items",
|
description = "Configures whether to show an infobox equipped charge items",
|
||||||
position = 26
|
position = 27
|
||||||
)
|
)
|
||||||
default boolean showInfoboxes()
|
default boolean showInfoboxes()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.BELLOWS;
|
||||||
import static net.runelite.client.plugins.itemcharges.ItemChargeType.FUNGICIDE_SPRAY;
|
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.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.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.FRUIT_BASKET;
|
||||||
import net.runelite.client.ui.FontManager;
|
import net.runelite.client.ui.FontManager;
|
||||||
import net.runelite.client.ui.overlay.WidgetItemOverlay;
|
import net.runelite.client.ui.overlay.WidgetItemOverlay;
|
||||||
import net.runelite.client.ui.overlay.components.TextComponent;
|
import net.runelite.client.ui.overlay.components.TextComponent;
|
||||||
@@ -160,6 +162,8 @@ class ItemChargeOverlay extends WidgetItemOverlay
|
|||||||
|| (type == WATERCAN && !plugin.isShowWateringCanCharges())
|
|| (type == WATERCAN && !plugin.isShowWateringCanCharges())
|
||||||
|| (type == WATERSKIN && !plugin.isShowWaterskinCharges())
|
|| (type == WATERSKIN && !plugin.isShowWaterskinCharges())
|
||||||
|| (type == BELLOWS && !plugin.isShowBellowCharges())
|
|| (type == BELLOWS && !plugin.isShowBellowCharges())
|
||||||
|
|| (type == FRUIT_BASKET && !plugin.isShowBasketCharges())
|
||||||
|
|| (type == SACK && !plugin.isShowSackCharges())
|
||||||
|| (type == ABYSSAL_BRACELET && !plugin.isShowAbyssalBraceletCharges()))
|
|| (type == ABYSSAL_BRACELET && !plugin.isShowAbyssalBraceletCharges()))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
@@ -180,7 +184,7 @@ class ItemChargeOverlay extends WidgetItemOverlay
|
|||||||
{
|
{
|
||||||
return plugin.isShowTeleportCharges() || plugin.isShowDodgyCount() || plugin.isShowFungicideCharges()
|
return plugin.isShowTeleportCharges() || plugin.isShowDodgyCount() || plugin.isShowFungicideCharges()
|
||||||
|| plugin.isShowImpCharges() || plugin.isShowWateringCanCharges() || plugin.isShowWaterskinCharges()
|
|| plugin.isShowImpCharges() || plugin.isShowWateringCanCharges() || plugin.isShowWaterskinCharges()
|
||||||
|| plugin.isShowBellowCharges() || plugin.isShowAbyssalBraceletCharges() || plugin.isShowExplorerRingCharges()
|
|| plugin.isShowBellowCharges() || plugin.isShowBasketCharges() || plugin.isShowSackCharges() || plugin.isShowAbyssalBraceletCharges() || plugin.isShowExplorerRingCharges()
|
||||||
|| plugin.isShowRingOfForgingCount();
|
|| plugin.isShowRingOfForgingCount();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -956,6 +956,7 @@ public class ItemChargePlugin extends Plugin
|
|||||||
this.showXericTalismanCharges = config.showXericTalismanCharges();
|
this.showXericTalismanCharges = config.showXericTalismanCharges();
|
||||||
this.showrecoil = config.showrecoil();
|
this.showrecoil = config.showrecoil();
|
||||||
this.chronicle = config.chronicle();
|
this.chronicle = config.chronicle();
|
||||||
|
this.showBasketCharges = config.showBasketCharges();
|
||||||
this.showSackCharges = config.showSackCharges();
|
this.showSackCharges = config.showSackCharges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user