hiscore plugin: Colorize "Lookup" player menu entry

This will cause the "Lookup" player menu entry to be colorized according
to the player indicators plugin options.

Fixes runelite/runelite#3806
This commit is contained in:
Jordan Atwood
2018-09-06 10:02:00 -07:00
parent b5b25aa6ca
commit 6b600da0f3
2 changed files with 3 additions and 1 deletions

View File

@@ -201,6 +201,7 @@ public class HiscorePlugin extends Plugin
lookup.setType(MenuAction.RUNELITE.getId());
lookup.setParam0(event.getActionParam0());
lookup.setParam1(event.getActionParam1());
lookup.setIdentifier(event.getIdentifier());
insertMenuEntry(lookup, client.getMenuEntries(), after);
}

View File

@@ -111,7 +111,8 @@ public class PlayerIndicatorsPlugin extends Plugin
|| type == PLAYER_FIFTH_OPTION.getId()
|| type == PLAYER_SIXTH_OPTION.getId()
|| type == PLAYER_SEVENTH_OPTION.getId()
|| type == PLAYER_EIGTH_OPTION.getId())
|| type == PLAYER_EIGTH_OPTION.getId()
|| type == RUNELITE.getId())
{
final Player localPlayer = client.getLocalPlayer();
Player[] players = client.getCachedPlayers();