game cancelled

This commit is contained in:
ntr 2019-11-13 21:35:52 +11:00
parent dfcc281416
commit 70f99a6ffd
3 changed files with 11 additions and 1 deletions

View File

@ -434,6 +434,10 @@
&.winner {
animation: win 2s ease-in-out 0s 1;
}
.cancelled {
color: white;
}
}
.tutorial {

View File

@ -80,6 +80,12 @@ class Faceoff extends preact.Component {
}
function faceoffText() {
if (!instance.winner) {
if (instance.phase === 'Finished') return (
<div class="faceoff-text">
<div class="cancelled"> game cancelled </div>
</div>
);
return (
<div class="faceoff-text">
<div class="opponent-text"> {otherTeam.name} </div>

View File

@ -73,7 +73,7 @@ pub fn chat_wheel(_db: &Db, _id: Uuid) -> Result<Vec<String>, Error> {
"glhf".to_string(),
"ez".to_string(),
"rekt".to_string(),
"nice".to_string(),
"wow".to_string(),
"wp".to_string(),
"ok".to_string(),
"...".to_string(),