Use Font_GetID() in the places where drawfont is used.
This commit is contained in:
parent
065bbcd339
commit
06af7f9e33
7 changed files with 14 additions and 15 deletions
|
@ -443,7 +443,7 @@ HUD_DrawSpectator(void)
|
|||
|
||||
spectator spec = (spectator)pSeat->m_ePlayer;
|
||||
|
||||
drawfont = FONT_20;
|
||||
drawfont = Font_GetID(FONT_20);
|
||||
vector vecPos;
|
||||
string strText;
|
||||
|
||||
|
|
|
@ -147,7 +147,7 @@ Obituary_Draw(void)
|
|||
int i;
|
||||
vector pos;
|
||||
vector item;
|
||||
drawfont = FONT_CON;
|
||||
drawfont = Font_GetID(FONT_CON);
|
||||
pos = g_hudmins + [g_hudres[0] - 18, 56];
|
||||
|
||||
if (g_obituary_time <= 0 && g_obituary_count > 0) {
|
||||
|
|
|
@ -31,7 +31,7 @@ Scores_DrawTeam(player pl, vector pos)
|
|||
{
|
||||
drawfill(pos, [290, 1], SCORE_LINE_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
|
||||
drawfont = FONT_20;
|
||||
drawfont = Font_GetID(FONT_20);
|
||||
drawstring(pos + [0,-18], "Teams", [20,20], SCORE_HEADER_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
drawstring(pos + [124,-18], "kills / deaths", [20,20], SCORE_HEADER_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
drawstring(pos + [240,-18], "latency", [20,20], SCORE_HEADER_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
|
@ -97,7 +97,7 @@ Scores_DrawTeam(player pl, vector pos)
|
|||
pos[1] += 12;
|
||||
}
|
||||
|
||||
drawfont = FONT_CON;
|
||||
drawfont = Font_GetID(FONT_CON);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -105,7 +105,7 @@ Scores_DrawNormal(player pl, vector pos)
|
|||
{
|
||||
drawfill(pos, [290, 1], SCORE_LINE_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
|
||||
drawfont = FONT_20;
|
||||
drawfont = Font_GetID(FONT_20);
|
||||
drawstring(pos + [0,-18], "Player", [20,20], SCORE_HEADER_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
drawstring(pos + [124,-18], "kills / deaths", [20,20], SCORE_HEADER_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
drawstring(pos + [240,-18], "latency", [20,20], SCORE_HEADER_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
|
@ -151,7 +151,7 @@ Scores_DrawNormal(player pl, vector pos)
|
|||
pos[1] += 20;
|
||||
}
|
||||
|
||||
drawfont = FONT_CON;
|
||||
drawfont = Font_GetID(FONT_CON);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
2
zpak001.pk3dir/fonts/chat.font
Normal file
2
zpak001.pk3dir/fonts/chat.font
Normal file
|
@ -0,0 +1,2 @@
|
|||
path "CONCHARS?fmt=h"
|
||||
size 12
|
|
@ -1,3 +1,2 @@
|
|||
name "16"
|
||||
font "fonts/default"
|
||||
size "16"
|
||||
path fonts/default
|
||||
size 16
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
name "cr"
|
||||
font "creditsfont?fmt=h"
|
||||
size "20"
|
||||
path "creditsfont?fmt=h"
|
||||
size 20
|
|
@ -1,3 +1,2 @@
|
|||
name "font"
|
||||
font ""
|
||||
size "12"
|
||||
path "CONCHARS?fmt=h"
|
||||
size 12
|
||||
|
|
Loading…
Reference in a new issue