aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2019-12-21 16:52:53 +0100
committersD <stoned@derpymail.org>2019-12-21 16:52:53 +0100
commit0f09863265a922bdabd65f912e782da69fab06d0 (patch)
tree890b0547e41a173a594e546ebfc19f72e54fdcc1 /webAO
parent92d5ac9974f288deb6e08836b42fe271df846627 (diff)
adjust colors to match the client
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 4446d96..a477474 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1308,15 +1308,16 @@ class Viewport {
chatBox.style.display = "block";
chatBox.style.fontSize = (chatBox.offsetHeight * 0.25) + "px";
- // TODO: add missing colors
- const colors = {
- "0": "#ffffff",
- "1": "#00ff00",
- "2": "#ff0000",
- "3": "#ffaa00",
- "4": "#0000ff",
- "5": "#ffff00",
- "6": "#aa00aa"
+ let colors = {
+ "0": "#ffffff", // white
+ "1": "#00ff00", // green
+ "2": "#ff0000", // red
+ "3": "#ffa500", // orange
+ "4": "#4596ff", // blue
+ "5": "#ffff00", // yellow
+ "6": "#fedcba", // 6 is rainbow.
+ "7": "#aac0cb", // pink
+ "8": "#00ffff" // cyan
};
chatBoxInner.style.color = colors[this.chatmsg.color] || "#ffffff";
this.chatmsg.startspeaking = false;