player-indicators: don't decorate non-player custom menu options
Splits the RUNELITE menu action into two actions: RUNELITE - general menu items. RUNELITE_PLAYER - menu items which target a player and have its identifier set to a player index. Then the player indicators plugin is changed to only decorate RUNELITE_PLAYER menu items.
This commit is contained in:
@@ -67,7 +67,7 @@ public class MenuManagerTest
|
||||
public void testPlayerMenuOptionClicked()
|
||||
{
|
||||
MenuOptionClicked event = new MenuOptionClicked();
|
||||
event.setMenuAction(MenuAction.RUNELITE);
|
||||
event.setMenuAction(MenuAction.RUNELITE_PLAYER);
|
||||
event.setMenuTarget("username<col=40ff00> (level-42)");
|
||||
|
||||
menuManager.onMenuOptionClicked(event);
|
||||
@@ -82,7 +82,7 @@ public class MenuManagerTest
|
||||
public void testPlayerMenuOptionWithBountyHunterEmblemClicked()
|
||||
{
|
||||
MenuOptionClicked event = new MenuOptionClicked();
|
||||
event.setMenuAction(MenuAction.RUNELITE);
|
||||
event.setMenuAction(MenuAction.RUNELITE_PLAYER);
|
||||
event.setMenuTarget("username<img=20>5<col=40ff00> (level-42)");
|
||||
|
||||
menuManager.onMenuOptionClicked(event);
|
||||
|
||||
Reference in New Issue
Block a user