diff --git a/game/game.js b/game/game.js index 71fc5e3..28a8b01 100644 --- a/game/game.js +++ b/game/game.js @@ -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(`

${t('pause')}

${t('no_pause_online')}

`); + $('bGo').onclick = () => { SFX.click(); hideOverlay(); }; + $('bGiveUp').onclick = () => { SFX.click(); hideOverlay(); if (lobby) lobby.leaveMatch(); }; + return; + } if (mode === 'fight') { mode = 'pause'; loop.pause(); card(`

${t('pause')}

`); diff --git a/game/lang.js b/game/lang.js index d45a777..dcc7f2d 100644 --- a/game/lang.js +++ b/game/lang.js @@ -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',