aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstonedDiscord <10584181+stonedDiscord@users.noreply.github.com>2020-11-09 16:56:14 +0100
committerstonedDiscord <10584181+stonedDiscord@users.noreply.github.com>2020-11-09 16:56:14 +0100
commitf0386116c3f473dbf84e662631ccd21fea7b0f61 (patch)
treeacfb177c67b9412113448db86ee1706c5033c324 /webAO
parent46764a72a287cb49d3854b57ae437b0ac947d5cd (diff)
moving the mouse over the area was too hard
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js
index f91d208..d00be46 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1221,11 +1221,9 @@ class Client extends EventEmitter {
switch (Number(args[0])) {
case 0: // playercount
this.areas[i].players = Number(args[i+1]);
- thisarea.innerText = `${this.areas[i].name} (${this.areas[i].players})`;
break;
case 1: // status
this.areas[i].status = safe_tags(args[i+1]);
- thisarea.classList = "area-button area-" + this.areas[i].status.toLowerCase();
break;
case 2:
this.areas[i].cm = safe_tags(args[i+1]);
@@ -1235,6 +1233,10 @@ class Client extends EventEmitter {
break;
}
+ thisarea.classList = "area-button area-" + this.areas[i].status.toLowerCase();
+
+ thisarea.innerText = `${this.areas[i].name} (${this.areas[i].players}) [${this.areas[i].status}]`;
+
thisarea.title = `Players: ${this.areas[i].players}\n` +
`Status: ${this.areas[i].status}\n` +
`CM: ${this.areas[i].cm}\n` +