diff options
| author | sD <stoned@derpymail.org> | 2019-12-22 19:37:30 +0100 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2019-12-22 19:37:30 +0100 |
| commit | ba8ec61733a6d582f939fffbe04793d31ec2d12e (patch) | |
| tree | 098802c7eeb3601a0e9bb2908b75bbb99c2aa446 | |
| parent | 729892862bcd4e4afd46a9bc2ba1cb99848c8be6 (diff) | |
add locked and spectatable
| -rw-r--r-- | webAO/client.css | 13 | ||||
| -rw-r--r-- | webAO/client.js | 6 |
2 files changed, 15 insertions, 4 deletions
diff --git a/webAO/client.css b/webAO/client.css index f2bf434..c91d643 100644 --- a/webAO/client.css +++ b/webAO/client.css @@ -144,10 +144,6 @@ img { width: 100%; } -.area_btn { - width: 20%; -} - #client_court { position: absolute; height: 100%; @@ -524,6 +520,7 @@ img { .area-button:hover { border-color: #FFD081; } + .area-default { background-color: rgb(54,198,68); } @@ -546,4 +543,12 @@ img { .area-gaming { background-color: rgb(55,255,255); +} + +.area-locked { + background-color: rgb(127,127,127); +} + +.area-spectatable { + background-color: rgb(54,198,68); }
\ No newline at end of file diff --git a/webAO/client.js b/webAO/client.js index 4898ef4..493598d 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -906,6 +906,9 @@ class Client extends EventEmitter { const thisarea = document.getElementById("area" + i); switch (args[i]) { + case "LOCKED": + thisarea.classList = "area-button area-locked"; + break; case "LOOKING-FOR-PLAYERS": thisarea.classList = "area-button area-looking"; break; @@ -921,6 +924,9 @@ class Client extends EventEmitter { case "GAMING": thisarea.classList = "area-button area-gaming"; break; + case "SPECTATABLE": + thisarea.classList = "area-button area-spectatable"; + break; default: thisarea.classList = "area-button area-default"; break; |
