summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2cc59f7)
raw | patch | inline | side by side (parent: 2cc59f7)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 7 Jun 2021 18:34:11 +0000 (21:34 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 9 Jun 2023 07:41:24 +0000 (10:41 +0300) |
src/game/g_window.pas | patch | blob | history | |
src/game/opengl/r_game.pas | patch | blob | history |
diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index 720be1b85ce934a2ec0e834939402d0ca2f4c743..b5e36742efa150bbe34286c823a6bb47624d071e 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
e_SetRendertarget(True);
e_SetViewPort(0, 0, gScreenWidth, gScreenHeight);
- DrawMenuBackground('INTER');
+ r_Game_DrawMenuBackground('INTER');
e_DarkenQuadWH(0, 0, gScreenWidth, gScreenHeight, 150);
- DrawLoadingStat();
+ r_Game_DrawLoadingStat();
r_Console_Draw(True);
e_SetRendertarget(False);
index 771f521f29fdd8936d8391ac818768887368d010..a494e0c2c4fe610cf394b7d26062f20fda2e9831 100644 (file)
interface
procedure r_Game_Draw;
- procedure DrawLoadingStat;
- procedure DrawMenuBackground (tex: AnsiString);
+ procedure r_Game_DrawLoadingStat;
+ procedure r_Game_DrawMenuBackground (tex: AnsiString);
implementation
end;
end;
-procedure DrawLoadingStat();
+procedure r_Game_DrawLoadingStat;
procedure drawRect (x, y, w, h: Integer);
begin
if (w < 1) or (h < 1) then exit;
end;
end;
-procedure DrawMenuBackground(tex: AnsiString);
+procedure r_Game_DrawMenuBackground (tex: AnsiString);
var
w, h: Word;
ID: DWord;
begin
if (gState = STATE_MENU) then
begin
- if (g_ActiveWindow = nil) or (g_ActiveWindow.BackTexture = '') then DrawMenuBackground('MENU_BACKGROUND');
+ if (g_ActiveWindow = nil) or (g_ActiveWindow.BackTexture = '') then r_Game_DrawMenuBackground('MENU_BACKGROUND');
// F3 at menu will show game loading dialog
if e_KeyPressed(IK_F3) then g_Menu_Show_LoadMenu(true);
if (g_ActiveWindow <> nil) then
else
back := 'INTER';
- DrawMenuBackground(back);
+ r_Game_DrawMenuBackground(back);
DrawCustomStat();
begin
back := 'INTER';
- DrawMenuBackground(back);
+ r_Game_DrawMenuBackground(back);
DrawSingleStat();
if gState = STATE_ENDPIC then
begin
ID := DWORD(-1);
- if g_Texture_Get('TEXTURE_endpic', ID) then DrawMenuBackground('TEXTURE_endpic')
- else DrawMenuBackground(_lc[I_TEXTURE_ENDPIC]);
+ if g_Texture_Get('TEXTURE_endpic', ID) then r_Game_DrawMenuBackground('TEXTURE_endpic')
+ else r_Game_DrawMenuBackground(_lc[I_TEXTURE_ENDPIC]);
if g_ActiveWindow <> nil then
begin
// e_DrawSize(ID, 0, 0, 0, False, False, gScreenWidth, gScreenHeight);
// //e_DrawFillQuad(0, 0, gScreenWidth-1, gScreenHeight-1, 48, 48, 48, 180);
// end;
- DrawMenuBackground('MENU_BACKGROUND');
+ r_Game_DrawMenuBackground('MENU_BACKGROUND');
e_DarkenQuadWH(0, 0, gScreenWidth, gScreenHeight, 150);
g_Serverlist_Draw(slCurrent, slTable);
end;