Skip to content

Commit

Permalink
mousehighlight: Don't show tooltips for right click only menuops
Browse files Browse the repository at this point in the history
  • Loading branch information
abextm committed Jan 26, 2019
1 parent 935ce60 commit 5b9c3cf
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -29,6 +29,7 @@
import java.awt.Graphics2D;
import javax.inject.Inject;
import net.runelite.api.Client;
import net.runelite.api.MenuAction;
import net.runelite.api.MenuEntry;
import net.runelite.api.VarClientInt;
import net.runelite.api.widgets.Widget;
Expand Down Expand Up @@ -72,6 +73,13 @@ public Dimension render(Graphics2D graphics)
MenuEntry menuEntry = menuEntries[last];
String target = menuEntry.getTarget();
String option = menuEntry.getOption();
int type = menuEntry.getType();

if (type == MenuAction.RUNELITE_OVERLAY.getId() || type == MenuAction.EXAMINE_ITEM_BANK_EQ.getId())
{
// These are always right click only
return null;
}

if (Strings.isNullOrEmpty(option))
{
Expand Down

0 comments on commit 5b9c3cf

Please sign in to comment.