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

@@ -31,6 +31,7 @@ class WidgetID
static final int PESTRCONTROL_GROUP_ID = 408;
static final int CLAN_CHAT_GROUP_ID = 7;
static final int MINIMAP_GROUP_ID = 160;
static final int LOGIN_CLICK_TO_PLAY_GROUP_ID = 378;
static class PestControl
{

View File

@@ -49,7 +49,9 @@ public enum WidgetInfo
BANK_ITEM_CONTAINER(WidgetID.BANK_GROUP_ID, WidgetID.Bank.ITEM_CONTAINER),
MINIMAP_XP_ORG(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.XP_ORB);
MINIMAP_XP_ORB(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.XP_ORB),
LOGIN_CLICK_TO_PLAY_SCREEN(WidgetID.LOGIN_CLICK_TO_PLAY_GROUP_ID, 0);
private final int groupId;

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())
//{