summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0a15e02)
raw | patch | inline | side by side (parent: 0a15e02)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 7 Jun 2021 18:34:11 +0000 (21:34 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Tue, 29 Jun 2021 09:51:11 +0000 (12:51 +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 410864799c6440bd610e696d849692222fc38202..374d42051c8f9f107acf6f4ff789d349799bf441 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 0d623dd29481b56f03311aef5873ef3b61b2474d..0510fc8699e30908086195245dadcd2377b56883 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;