Added an info box showing the total amount of usable metal you own for Giants' foundry, with possibility to filter for any combination of equipment, metal bars and ore.
This commit is contained in:
@@ -84,6 +84,9 @@ public class EasyGiantsFoundryPlugin extends Plugin
|
||||
@Inject
|
||||
private FoundryOverlay3D overlay3d;
|
||||
|
||||
@Inject
|
||||
private EasyGiantsFoundryMetalInfo metalInfo;
|
||||
|
||||
@Inject
|
||||
private MouldHelper mouldHelper;
|
||||
|
||||
@@ -107,6 +110,7 @@ public class EasyGiantsFoundryPlugin extends Plugin
|
||||
{
|
||||
overlayManager.add(overlay2d);
|
||||
overlayManager.add(overlay3d);
|
||||
overlayManager.add(metalInfo);
|
||||
if (client.getGameState() == GameState.LOGGED_IN)
|
||||
{
|
||||
reputation = client.getVarpValue(REPUTATION_VARBIT);
|
||||
@@ -118,6 +122,7 @@ public class EasyGiantsFoundryPlugin extends Plugin
|
||||
{
|
||||
overlayManager.remove(overlay2d);
|
||||
overlayManager.remove(overlay3d);
|
||||
overlayManager.remove(metalInfo);
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
@@ -265,6 +270,12 @@ public class EasyGiantsFoundryPlugin extends Plugin
|
||||
updateSmithsOutfitPieces();
|
||||
}
|
||||
}
|
||||
else if (event.getContainerId() == InventoryID.BANK.getId()) {
|
||||
metalInfo.bank = event.getItemContainer();
|
||||
}
|
||||
else if (event.getContainerId() == InventoryID.INVENTORY.getId()) {
|
||||
metalInfo.inventory = event.getItemContainer();
|
||||
}
|
||||
}
|
||||
|
||||
public void onMenuEntryAdded(MenuEntryAdded event)
|
||||
|
||||
Reference in New Issue
Block a user