show no players in range message

This commit is contained in:
Alberto Xamin 2020-12-27 18:09:47 +01:00
parent 9659e3574a
commit b3daa8d958
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
3 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,7 @@
<p v-if="hint"><i>{{hint}}</i></p>
</transition>
<Chooser v-if="is_my_turn && pending_action == 4 && (lives > 0 || is_ghost)" :text="$t('wait')" :cards="[]"/>
<Chooser v-if="card_against" :text="$t('card_against')" :cards="visiblePlayers" :select="selectAgainst" :cancel="cancelCardAgainst"/>
<Chooser v-if="card_against" :text="$t('card_against')" :hint-text="visiblePlayers.length === 0 ? $t('no_players_in_range'):''" :cards="visiblePlayers" :select="selectAgainst" :cancel="cancelCardAgainst"/>
<Chooser v-if="pending_action == 3" :text="respondText" :cards="respondCards" :select="respond"/>
<Chooser v-if="shouldChooseCard" :text="$t(choose_text)" :cards="available_cards" :select="choose"/>
<Chooser v-if="lives <= 0 && max_lives > 0 && !is_ghost" :text="$t('you_died')" :cancelText="$t('spectate')" :cancel="()=>{max_lives = 0}"/>

View File

@ -61,6 +61,7 @@
"to_defend_from": "TO DEFEND YOURSELF FROM",
"submit": "Submit",
"copy": "Copy invite",
"no_players_in_range": "You can't see the other players, equip a weapon or a scope!",
"chat": {
"chat": "Chat",
"joined": "{0} joined the lobby",

View File

@ -61,6 +61,7 @@
"to_defend_from": "PER DIFENDERTI DA",
"submit": "Invia",
"copy": "Copia invito",
"no_players_in_range": "Non vedi nessun giocatore, equipaggia un arma o un mirino!",
"chat": {
"chat": "Chat",
"joined": "{0} è entrato nella stanza",