Skip to content

Commit

Permalink
If a streamer is using the plug-in, not highlighting their own charac…
Browse files Browse the repository at this point in the history
…ter.

Changing twitch icon and overhead link color for a more vibrant purple.
Updating plugin descriptor for nicer wording.
  • Loading branch information
royporter7 committed Oct 24, 2020
1 parent 32e5d84 commit 8f36092
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion runelite-plugin.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
displayName=OSRS Streamers
author=rhoiyds
support=https://github.com/rhoiyds/osrs-streamers
description=See which players in-game are usually/currently streamed on Twitch from a list of verified streamers.
description=Highlight in-game characters which are streaming on Twitch from a list of verified streamers.
tags=twitch,streaming,stream
plugins=com.osrsstreamers.OsrsStreamersPlugin
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class StreamingPlayerOverlay extends Overlay {

public StreamerHandler streamerHandler;

private static final Color TWITCH_COLOR = new Color(95, 58, 162);
private static final Color TWITCH_COLOR = new Color(133, 76, 231);
private static final Color OFFLINE_COLOR = new Color(169, 169, 169);
private static final int PLAYER_OVERHEAD_TEXT_MARGIN = 40;

Expand All @@ -32,7 +32,7 @@ private StreamingPlayerOverlay()
@Override
public Dimension render(Graphics2D graphics) {

client.getPlayers().forEach(player -> {
client.getPlayers().stream().filter(player -> !player.equals(client.getLocalPlayer())).forEach(player -> {
NearbyPlayer nearbyPlayer = streamerHandler.getNearbyPlayer(player.getName());
if (Objects.nonNull(nearbyPlayer) && !StreamStatus.NOT_STREAMER.equals(nearbyPlayer.status)) {
Color color = OFFLINE_COLOR;
Expand Down

0 comments on commit 8f36092

Please sign in to comment.