Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.
/ DF Public archive

Commit

Permalink
added team scores to scoretable
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed Aug 17, 2015
1 parent 646bc26 commit 4acb02a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions DF Sources/g_game.pas
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,9 @@ procedure DrawStat();
b := 255;
end;

e_TextureFontPrintEx(x+16, _y, Format(s1, [gTeamStat[a].Goals]), gStdFont, r, g, b, 1);
e_TextureFontPrintEx(x+16, _y, s1, gStdFont, r, g, b, 1);
e_TextureFontPrintEx(x+w1+16, _y, IntToStr(gTeamStat[a].Goals),
gStdFont, r, g, b, 1);

_y := _y+ch+(ch div 4);
e_DrawLine(1, x+16, _y, x+w-16, _y, r, g, b);
Expand Down Expand Up @@ -1601,15 +1603,19 @@ procedure DrawCustomStat();
begin
if t = TEAM_RED then
begin
e_TextureFontPrintEx(x+8, _y, Format(_lc[I_GAME_TEAM_RED], [CustomStat.TeamStat[TEAM_RED].Goals]),
e_TextureFontPrintEx(x+8, _y, _lc[I_GAME_TEAM_RED],
gStdFont, 255, 0, 0, 1);
e_TextureFontPrintEx(x+w1+8, _y, IntToStr(CustomStat.TeamStat[TEAM_RED].Goals),
gStdFont, 255, 0, 0, 1);
r := 255;
g := 0;
b := 0;
end
else
begin
e_TextureFontPrintEx(x+8, _y, Format(_lc[I_GAME_TEAM_BLUE], [CustomStat.TeamStat[TEAM_BLUE].Goals]),
e_TextureFontPrintEx(x+8, _y, _lc[I_GAME_TEAM_BLUE],
gStdFont, 0, 0, 255, 1);
e_TextureFontPrintEx(x+w1+8, _y, IntToStr(CustomStat.TeamStat[TEAM_BLUE].Goals),
gStdFont, 0, 0, 255, 1);
r := 0;
g := 0;
Expand Down

0 comments on commit 4acb02a

Please sign in to comment.