From: Ketmar Dark Date: Sat, 2 Sep 2017 18:53:05 +0000 (+0300) Subject: F3 at titlepic/menu will show "load game" dialog X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=5c0e145428d60023677261d107632740cec9342b;p=d2df-sdl.git F3 at titlepic/menu will show "load game" dialog --- diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 3f56489..2d1c41a 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -3223,16 +3223,26 @@ begin begin if (gState = STATE_MENU) then begin - if ((g_ActiveWindow = nil) or (g_ActiveWindow.BackTexture = '')) then + if (g_ActiveWindow = nil) or (g_ActiveWindow.BackTexture = '') then begin - if g_Texture_Get('MENU_BACKGROUND', ID) then - e_DrawSize(ID, 0, 0, 0, False, False, gScreenWidth, gScreenHeight) + if g_Texture_Get('MENU_BACKGROUND', ID) then e_DrawSize(ID, 0, 0, 0, False, False, gScreenWidth, gScreenHeight) else e_Clear(GL_COLOR_BUFFER_BIT, 0, 0, 0); end; - if g_ActiveWindow <> nil then + // F3 at menu will show game loading dialog + if e_KeyPressed(IK_F3) then g_Menu_Show_LoadMenu(); + if (g_ActiveWindow <> nil) then begin //e_DrawFillQuad(0, 0, gScreenWidth-1, gScreenHeight-1, 48, 48, 48, 180); e_DarkenQuadWH(0, 0, gScreenWidth, gScreenHeight, 150); + end + else + begin + // F3 at titlepic will show game loading dialog + if e_KeyPressed(IK_F3) then + begin + g_Menu_Show_LoadMenu(); + if (g_ActiveWindow <> nil) then e_DarkenQuadWH(0, 0, gScreenWidth, gScreenHeight, 150); + end; end; end;