aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-02-14 22:54:39 +0100
committersD <stoned@derpymail.org>2020-02-14 22:54:39 +0100
commit5fb1bf0113afd2ba0577332f5f1447ca36d8da99 (patch)
tree687f14e964a7f4e9a9ade8b8e74bd286ac8dffa7
parenta6421cf518844a10fb258f49ffd202a20a171738 (diff)
ez color
-rw-r--r--webAO/client.js20
1 files changed, 10 insertions, 10 deletions
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";