mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-02 18:48:09 +00:00
Added robot emoji prefix to bot and npc names
This commit is contained in:
@@ -158,7 +158,7 @@ export class NameLayer implements Layer {
|
||||
|
||||
const nameDiv = document.createElement("div");
|
||||
nameDiv.classList.add('player-name');
|
||||
nameDiv.innerHTML = player.name();
|
||||
nameDiv.innerHTML = (player.type() !== PlayerType.Human ? "🤖 " : '') + player.name();
|
||||
nameDiv.style.color = this.theme.playerInfoColor(player.id()).toHex();
|
||||
nameDiv.style.fontFamily = this.theme.font();
|
||||
nameDiv.style.whiteSpace = "nowrap";
|
||||
|
||||
Reference in New Issue
Block a user