feat(fight): give up a live fight from the pause card
This commit is contained in:
@@ -1879,7 +1879,14 @@
|
||||
|
||||
function togglePause() {
|
||||
overlayEnter();
|
||||
if (F && F.online && mode === 'fight') { banner(t('no_pause_online'), '#ffffff', 1.4); return; }
|
||||
// live fight: no pause (the server keeps running) - but you can give up; the fight goes on behind the card
|
||||
if (F && F.online && mode === 'fight') {
|
||||
if ($('bGiveUp')) { hideOverlay(); return; } // second press closes the card again
|
||||
card(`<h2>${t('pause')}</h2><p>${t('no_pause_online')}</p><div class="row"><button id="bGiveUp">${t('give_up')}</button><button class="primary" id="bGo">${t('continue')}</button></div>`);
|
||||
$('bGo').onclick = () => { SFX.click(); hideOverlay(); };
|
||||
$('bGiveUp').onclick = () => { SFX.click(); hideOverlay(); if (lobby) lobby.leaveMatch(); };
|
||||
return;
|
||||
}
|
||||
if (mode === 'fight') {
|
||||
mode = 'pause'; loop.pause();
|
||||
card(`<h2>${t('pause')}</h2><div class="row"><button id="bSet2">⚙ ${t('settings')}</button><button id="bQuit">${t('give_up')}</button><button class="primary" id="bGo">${t('continue')}</button></div>`);
|
||||
|
||||
@@ -209,7 +209,7 @@ window.LANG = {
|
||||
all_countries: 'All countries', filter_country: 'Show:',
|
||||
s_arena: 'Arena', arena_random: 'Random', arena_workshop: 'Workshop Pit', arena_foundry: 'The Foundry', arena_arena64: 'Mega Dome',
|
||||
arena_scrapyard: 'Scrapyard', arena_crucible: 'The Crucible', arena_colosseum: 'Grand Colosseum',
|
||||
peer_back: 'Opponent is back', no_pause_online: 'No pause in live fights',
|
||||
peer_back: 'Opponent is back', no_pause_online: 'No pause in live fights - the fight keeps running.',
|
||||
r_draw_prize: 'Draw prize',
|
||||
online_guest: 'Join as guest (no e-mail)', online_short: '🌍 Online',
|
||||
room_title: '{room} lobby', room_count: '{n} in this room', other_rooms: 'Other countries', you: 'you',
|
||||
@@ -489,7 +489,7 @@ window.LANG = {
|
||||
all_countries: 'Alle Länder', filter_country: 'Zeigen:',
|
||||
s_arena: 'Arena', arena_random: 'Zufällig', arena_workshop: 'Werkstatt-Grube', arena_foundry: 'Die Gießerei', arena_arena64: 'Mega-Dome',
|
||||
arena_scrapyard: 'Schrottplatz', arena_crucible: 'Der Schmelztiegel', arena_colosseum: 'Große Arena',
|
||||
peer_back: 'Gegner ist wieder da', no_pause_online: 'Keine Pause im Live-Kampf',
|
||||
peer_back: 'Gegner ist wieder da', no_pause_online: 'Keine Pause im Live-Kampf - der Kampf läuft weiter.',
|
||||
r_draw_prize: 'Unentschieden-Preis',
|
||||
online_guest: 'Als Gast beitreten (ohne E-Mail)', online_short: '🌍 Online',
|
||||
room_title: 'Lobby {room}', room_count: '{n} in diesem Raum', other_rooms: 'Andere Länder', you: 'du',
|
||||
|
||||
Reference in New Issue
Block a user