summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 11afd96)
raw | patch | inline | side by side (parent: 11afd96)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 20 Feb 2023 18:07:19 +0000 (21:07 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 9 Jun 2023 09:19:18 +0000 (12:19 +0300) |
src/game/g_window.pas | patch | blob | history |
diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index 92ee3b97161f475f88d1b9acf04528fa566c813d..df97e5149a2682bc6bddbe0499a6e307b315d351 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
{$IFDEF ENABLE_SYSTEM}
g_system,
{$ENDIF}
+ {$IFDEF ENABLE_MENU}
+ g_gui,
+ {$ENDIF}
e_sound, g_net
;
procedure ProcessLoading (forceUpdate: Boolean = False);
begin
+ {$IFDEF ENABLE_MENU}
+ g_ActiveWindow := nil;
+ {$ENDIF}
{$IFDEF ENABLE_RENDER}
r_Render_DrawLoading(forceUpdate);
{$ENDIF}
procedure g_Game_ClearLoading;
begin
+ {$IFDEF ENABLE_MENU}
+ g_ActiveWindow := nil;
+ {$ENDIF}
{$IFDEF ENABLE_RENDER}
r_Render_ClearLoading;
{$ENDIF}
procedure g_Game_SetLoadingText (const text: String; maxval: Integer; rewrite: Boolean);
begin
+ {$IFDEF ENABLE_MENU}
+ g_ActiveWindow := nil;
+ {$ENDIF}
{$IFDEF ENABLE_RENDER}
if maxval < 0 then maxval := 0;
r_Render_SetLoading(text, maxval);
procedure g_Game_StepLoading (value: Integer = -1);
begin
+ {$IFDEF ENABLE_MENU}
+ g_ActiveWindow := nil;
+ {$ENDIF}
{$IFDEF ENABLE_RENDER}
if value < 0 then value := 1;
r_Render_StepLoading(value);