Skip to content

Commit

Permalink
add pirates to the server status image
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Jan 4, 2025
1 parent 6962adc commit 105cc2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions resources/game-server-status/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ main {
color: lighten(adjust-hue($link, 80), 5%) !important;
}

&.is-pirate a .nick {
color: darken(adjust-hue($link, 180), 20%) !important;
}

&.is-afk {
opacity: 0.5;
}
Expand Down
2 changes: 1 addition & 1 deletion resources/game-server-status/view.pug
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ html(lang="en")
main(style=`background-image: url(${server.status.mapThumbnail})`)
ul.playerlist
each player in server.status.players
li.player(class={ 'is-admin': player.isAdmin, 'is-banned': player.isBanned, 'is-afk': player.isAfk })
li.player(class={ 'is-admin': player.isAdmin, 'is-banned': player.isBanned, 'is-afk': player.isAfk, 'is-pirate': player.isPirate })
a(title="View profile", href=player.accountId ? `https://steamcommunity.com/profiles/[U:1:${player.accountId}]` : "#", target="_blank")
if (player.avatar)
img.avatar(src=player.avatar)
Expand Down

0 comments on commit 105cc2d

Please sign in to comment.