add check for click to play screen in grounditems

This commit is contained in:
Steve
2017-06-23 20:22:47 +01:00
committed by Adam
parent 60eb6fe99d
commit 9e9e126876
4 changed files with 11 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ public class FPSOverlay extends Overlay
FontMetrics fm = graphics.getFontMetrics();
String str = String.valueOf(client.getFPS());
Widget xpOrb = client.getWidget(WidgetInfo.MINIMAP_XP_ORG);
Widget xpOrb = client.getWidget(WidgetInfo.MINIMAP_XP_ORB);
if (xpOrb == null)
{
return null;

View File

@@ -96,6 +96,12 @@ public class GroundItemsOverlay extends Overlay
return null;
}
//if the player is logged in but viewing the click to play screen exit
if (client.getWidget(WidgetInfo.LOGIN_CLICK_TO_PLAY_SCREEN) != null)
{
return null;
}
//Widget bank = client.getWidget(WidgetInfo.BANK_ITEM_CONTAINER);
//if (bank != null && !bank.isHidden())
//{