diff --git a/src/game/g_main.pas b/src/game/g_main.pas
index 734ae36ff49f1d76f11d66d7930c63d7c81c5908..7de78252194aea44adfb3baf70463f403f5ede8b 100644 (file)
--- a/src/game/g_main.pas
+++ b/src/game/g_main.pas
g_weapons, SysUtils, g_triggers, MAPDEF, g_map,
g_menu, g_language, g_net, g_holmes,
utils, conbuf, envvars, fui_wadread, fui_style,
- xparser;
+ fui_gfx_gl, xparser;
var
try
e_LogWriteln('FlexUI: loading stylesheet...');
uiLoadStyles('flexui/widgets.wgs');
- g_holmes_imfunctional := false;
except on e: TParserException do
begin
writeln('ERROR at (', e.tokLine, ',', e.tokCol, '): ', e.message);
//raise;
end;
end;
+ try
+ fuiGfxLoadFont('win8', 'flexui/fonts/win8.fuifont');
+ fuiGfxLoadFont('win14', 'flexui/fonts/win14.fuifont');
+ fuiGfxLoadFont('win16', 'flexui/fonts/win16.fuifont');
+ g_holmes_imfunctional := false;
+ except on e: Exception do
+ begin
+ writeln('ERROR loading FlexUI fonts');
+ //raise;
+ end;
+ else
+ begin
+ //raise;
+ end;
+ end;
{$ENDIF}
e_WriteLog('Entering SDLMain', TMsgType.Notify);
Msg.Msg := WM_KEYDOWN;
Msg.WParam := IK_ESCAPE;
g_ActiveWindow.OnMessage(Msg);
+ if (not g_Game_IsNet) and (g_ActiveWindow = nil) then g_Game_Pause(false); //Fn loves to do this
end
else if (gState <> STATE_FOLD) then
begin
begin // <F2> .. <F6> � <F12>
if gGameOn and (not gConsoleShow) and (not gChatShow) then
begin
- while g_ActiveWindow <> nil do g_GUI_HideWindow(False);
+ while (g_ActiveWindow <> nil) do g_GUI_HideWindow(False);
if (not g_Game_IsNet) then g_Game_Pause(True);
case K of
IK_F2: g_Menu_Show_SaveMenu();