add check for click to play screen in grounditems
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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())
|
||||
//{
|
||||
|
||||
Reference in New Issue
Block a user