diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsConfig.java b/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsConfig.java index 82f8d141ce..4b8ce6b2b0 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsConfig.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsConfig.java @@ -159,6 +159,17 @@ public interface PlayerIndicatorsConfig extends Config @ConfigItem( position = 11, + keyName = "drawOverheadPlayerNames", + name = "Draw names above players", + description = "Configures whether or not player names should be drawn above players" + ) + default boolean drawOverheadPlayerNames() + { + return true; + } + + @ConfigItem( + position = 12, keyName = "drawMinimapNames", name = "Draw names on minimap", description = "Configures whether or not minimap names for players with rendered names should be drawn" @@ -169,7 +180,7 @@ public interface PlayerIndicatorsConfig extends Config } @ConfigItem( - position = 12, + position = 13, keyName = "colorPlayerMenu", name = "Color player menu", description = "Color right click menu for players" @@ -180,7 +191,7 @@ public interface PlayerIndicatorsConfig extends Config } @ConfigItem( - position = 13, + position = 14, keyName = "clanMenuIcons", name = "Show clan rank in menu", description = "Add clan rank to right click menu for players" diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsOverlay.java index cf8c593af6..d2c33fa2d0 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsOverlay.java @@ -76,6 +76,11 @@ public class PlayerIndicatorsOverlay extends Overlay } } + if (!config.drawOverheadPlayerNames()) + { + return; + } + String name = actor.getName().replace('\u00A0', ' '); int offset = actor.getLogicalHeight() + 40; Point textLocation = actor.getCanvasTextLocation(graphics, name, offset);