mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 01:02:03 +00:00
- Applied Karate Chris's TEAMINFO logo patch.
SVN r690 (trunk)
This commit is contained in:
parent
a5265c4ec5
commit
756be2755a
4 changed files with 19 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
|||
January 10, 2008
|
||||
- Applied Karate Chris's TEAMINFO logo patch.
|
||||
|
||||
January 10, 2008 (Changes by Graf Zahl)
|
||||
- defined a constant for the crosshair menu entry's index to get a direct
|
||||
reference out of the function code. In GZDoom the menu contains different
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
**
|
||||
**---------------------------------------------------------------------------
|
||||
** Copyright 1998-2006 Randy Heit
|
||||
** Copyright 2007 Christopher Westley
|
||||
** Copyright 2007-2008 Christopher Westley
|
||||
** All rights reserved.
|
||||
**
|
||||
** Redistribution and use in source and binary forms, with or without
|
||||
|
@ -329,6 +329,12 @@ static void HU_DrawPlayer (player_t *player, bool highlight, int x, int y, int h
|
|||
screen->DrawText (color, SCREENWIDTH / 2, y, player->userinfo.netname,
|
||||
DTA_CleanNoMove, true, TAG_DONE);
|
||||
|
||||
if (teamplay && teams[player->userinfo.team].logo.GetChars ())
|
||||
{
|
||||
screen->DrawTexture (TexMan[teams[player->userinfo.team].logo.GetChars ()], SCREENWIDTH / 5, y,
|
||||
DTA_CleanNoMove, true, TAG_DONE);
|
||||
}
|
||||
|
||||
if (player->mo->ScoreIcon > 0)
|
||||
{
|
||||
screen->DrawTexture (TexMan[player->mo->ScoreIcon], SCREENWIDTH / 2.25, y,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
** Implementation of the TEAMINFO lump.
|
||||
**
|
||||
**---------------------------------------------------------------------------
|
||||
** Copyright 2007 Christopher Westley
|
||||
** Copyright 2007-2008 Christopher Westley
|
||||
** All rights reserved.
|
||||
**
|
||||
** Redistribution and use in source and binary forms, with or without
|
||||
|
@ -66,6 +66,7 @@ TArray <TEAMINFO> teams;
|
|||
static const char *keywords_teaminfo [] = {
|
||||
"PLAYERCOLOR",
|
||||
"TEXTCOLOR",
|
||||
"LOGO",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
@ -133,6 +134,11 @@ void TEAMINFO_ParseTeam ()
|
|||
team.textcolor << sc_String << ']';
|
||||
break;
|
||||
|
||||
case 2:
|
||||
SC_MustGetString ();
|
||||
team.logo = sc_String;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
** Implementation of the TEAMINFO lump.
|
||||
**
|
||||
**---------------------------------------------------------------------------
|
||||
** Copyright 2007 Christopher Westley
|
||||
** Copyright 2007-2008 Christopher Westley
|
||||
** All rights reserved.
|
||||
**
|
||||
** Redistribution and use in source and binary forms, with or without
|
||||
|
@ -43,6 +43,7 @@ struct TEAMINFO
|
|||
int playercolor;
|
||||
FString textcolor;
|
||||
int GetTextColor () const;
|
||||
FString logo;
|
||||
int players;
|
||||
int score;
|
||||
int present;
|
||||
|
|
Loading…
Reference in a new issue