# HG changeset patch # User unc0rr # Date 1214167239 0 # Node ID 2a32ee7affa3f6d974f721f32234eb6bc0a47607 # Parent f6a3fcb329ca11aceed808a079f930f89548a675 Complete exit confirmation implementation diff -r f6a3fcb329ca -r 2a32ee7affa3 hedgewars/uLocale.pas --- a/hedgewars/uLocale.pas Sun Jun 22 19:26:01 2008 +0000 +++ b/hedgewars/uLocale.pas Sun Jun 22 20:40:39 2008 +0000 @@ -25,7 +25,8 @@ sidGirder, sidTeleport, sidSwitch, sidMortar, sidWhip, sidKamikaze); - TMsgStrId = (sidStartFight, sidDraw, sidWinner, sidVolume, sidPaused); + TMsgStrId = (sidStartFight, sidDraw, sidWinner, sidVolume, sidPaused, + sidConfirm); var trammo: array[TAmmoStrId] of string; trmsg: array[TMsgStrId] of string; diff -r f6a3fcb329ca -r 2a32ee7affa3 hedgewars/uStore.pas --- a/hedgewars/uStore.pas Sun Jun 22 19:26:01 2008 +0000 +++ b/hedgewars/uStore.pas Sun Jun 22 20:40:39 2008 +0000 @@ -45,7 +45,8 @@ var PixelFormat: PSDL_PixelFormat; SDLPrimSurface: PSDL_Surface; - PauseTexture: PTexture; + PauseTexture, + ConfirmTexture: PTexture; implementation uses uMisc, uConsole, uLand, uLocale, GLU; @@ -295,6 +296,7 @@ InitHealth; PauseTexture:= RenderStringTex(trmsg[sidPaused], $FFFF00, fntBig); +ConfirmTexture:= RenderStringTex(trmsg[sidConfirm], $FFFF00, fntBig); for ai:= Low(TAmmoType) to High(TAmmoType) do with Ammoz[ai] do diff -r f6a3fcb329ca -r 2a32ee7affa3 hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Sun Jun 22 19:26:01 2008 +0000 +++ b/hedgewars/uWorld.pas Sun Jun 22 20:40:39 2008 +0000 @@ -389,6 +389,8 @@ end end; +if GameState = gsConfirm then DrawCentered(cScreenWidth div 2, cScreenHeight div 2, ConfirmTexture); + glDisable(GL_TEXTURE_2D); glDisable(GL_BLEND) end; diff -r f6a3fcb329ca -r 2a32ee7affa3 share/hedgewars/Data/Locale/en.txt --- a/share/hedgewars/Data/Locale/en.txt Sun Jun 22 19:26:01 2008 +0000 +++ b/share/hedgewars/Data/Locale/en.txt Sun Jun 22 20:40:39 2008 +0000 @@ -29,4 +29,5 @@ 01:01=Round draw 01:02=%1 wins! 01:03=Volume %1% -01:04=Paused \ No newline at end of file +01:04=Paused +01:05=Really quit (Y/Esc)? \ No newline at end of file diff -r f6a3fcb329ca -r 2a32ee7affa3 share/hedgewars/Data/Locale/it.txt --- a/share/hedgewars/Data/Locale/it.txt Sun Jun 22 19:26:01 2008 +0000 +++ b/share/hedgewars/Data/Locale/it.txt Sun Jun 22 20:40:39 2008 +0000 @@ -30,4 +30,4 @@ 01:02=%1 vince! 01:03=Volume %1% 01:04=In pausa - +01:05=Really quit (Y/Esc)? diff -r f6a3fcb329ca -r 2a32ee7affa3 share/hedgewars/Data/Locale/pl.txt --- a/share/hedgewars/Data/Locale/pl.txt Sun Jun 22 19:26:01 2008 +0000 +++ b/share/hedgewars/Data/Locale/pl.txt Sun Jun 22 20:40:39 2008 +0000 @@ -30,3 +30,4 @@ 01:02=%1 wygrywają! 01:03=Głośność %1% 01:04=Gra wstrzymana +01:05=Really quit (Y/Esc)? diff -r f6a3fcb329ca -r 2a32ee7affa3 share/hedgewars/Data/Locale/ru.txt --- a/share/hedgewars/Data/Locale/ru.txt Sun Jun 22 19:26:01 2008 +0000 +++ b/share/hedgewars/Data/Locale/ru.txt Sun Jun 22 20:40:39 2008 +0000 @@ -29,4 +29,5 @@ 01:01=Ничья 01:02=Победила команда %1! 01:03=Громкость %1% -01:04=Пауза \ No newline at end of file +01:04=Пауза +01:05=Точно выйти (Y/Esc)?