From 5fb1bf0113afd2ba0577332f5f1447ca36d8da99 Mon Sep 17 00:00:00 2001 From: sD Date: Fri, 14 Feb 2020 22:54:39 +0100 Subject: ez color --- webAO/client.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'webAO') diff --git a/webAO/client.js b/webAO/client.js index 7f14aed..5104997 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1184,15 +1184,15 @@ class Viewport { }; this.colors = [ - "text_white", - "text_green", - "text_red", - "text_orange", - "text_blue", - "text_yellow", - "text_rainbow", - "text_pink", - "text_cyan" + "white", + "green", + "red", + "orange", + "blue", + "yellow", + "rainbow", + "pink", + "cyan" ]; this.blip = new Audio(AO_HOST + "sounds/general/sfx-blipmale.wav"); @@ -1588,7 +1588,7 @@ class Viewport { nameBox.style.display = "block"; nameBox.style.fontSize = (nameBox.offsetHeight * 0.7) + "px"; - chatBoxInner.className = this.colors[this.chatmsg.color]; + chatBoxInner.className = "text_" + this.colors[this.chatmsg.color]; chatBox.style.display = "block"; chatBox.style.fontSize = (chatBox.offsetHeight * 0.25) + "px"; -- cgit