mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-02 13:12:50 +00:00
Add Menu Font (without using it anywhere)
Content of commit was originally written by Sal, but as a monolithic commit. The author of this commit is chunking it up for easier review. Adds the additional font. This requires a little cleanup before we can use it as the primary menu font, but worth at least putting this in the relevant places for later.
This commit is contained in:
parent
a536f884ce
commit
86784ae91a
4 changed files with 30 additions and 0 deletions
|
|
@ -255,6 +255,10 @@ void HU_Init(void)
|
|||
PR ("STCFN");
|
||||
REG;
|
||||
|
||||
|
||||
PR ("MNUFN");
|
||||
REG;
|
||||
|
||||
PR ("TNYFN");
|
||||
REG;
|
||||
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ extern "C" {
|
|||
enum
|
||||
{
|
||||
X (HU),
|
||||
X (MENU),
|
||||
X (TINY),
|
||||
X (FILE),
|
||||
|
||||
|
|
|
|||
|
|
@ -2291,6 +2291,7 @@ void V_DrawStringScaled(
|
|||
{
|
||||
default:
|
||||
case HU_FONT:
|
||||
case MENU_FONT:
|
||||
spacew = 4;
|
||||
switch (spacing)
|
||||
{
|
||||
|
|
@ -2361,6 +2362,7 @@ void V_DrawStringScaled(
|
|||
{
|
||||
default:
|
||||
case HU_FONT:
|
||||
case MENU_FONT:
|
||||
case TINY_FONT:
|
||||
case KART_FONT:
|
||||
lfh = 12;
|
||||
|
|
@ -2603,6 +2605,7 @@ fixed_t V_StringScaledWidth(
|
|||
{
|
||||
default:
|
||||
case HU_FONT:
|
||||
case MENU_FONT:
|
||||
spacew = 4;
|
||||
switch (spacing)
|
||||
{
|
||||
|
|
@ -2671,6 +2674,7 @@ fixed_t V_StringScaledWidth(
|
|||
{
|
||||
default:
|
||||
case HU_FONT:
|
||||
case MENU_FONT:
|
||||
case TINY_FONT:
|
||||
case KART_FONT:
|
||||
lfh = 12;
|
||||
|
|
@ -2913,6 +2917,18 @@ void V_DrawRightAlignedTimerString(INT32 x, INT32 y, INT32 option, const char *s
|
|||
V_DrawTimerString(x, y, option, string);
|
||||
}
|
||||
|
||||
void V_DrawCenteredMenuString(INT32 x, INT32 y, INT32 option, const char *string)
|
||||
{
|
||||
x -= V_MenuStringWidth(string, option)/2;
|
||||
V_DrawMenuString(x, y, option, string);
|
||||
}
|
||||
|
||||
void V_DrawRightAlignedMenuString(INT32 x, INT32 y, INT32 option, const char *string)
|
||||
{
|
||||
x -= V_MenuStringWidth(string, option);
|
||||
V_DrawMenuString(x, y, option, string);
|
||||
}
|
||||
|
||||
void V_DrawCenteredGamemodeString(INT32 x, INT32 y, INT32 option, const UINT8 *colormap, const char *string)
|
||||
{
|
||||
x -= V_GamemodeStringWidth(string, option)/2;
|
||||
|
|
|
|||
|
|
@ -374,6 +374,15 @@ void V_DrawProfileNum(INT32 x, INT32 y, INT32 flags, UINT8 num);
|
|||
void V_DrawCenteredTimerString(INT32 x, INT32 y, INT32 option, const char *string);
|
||||
void V_DrawRightAlignedTimerString(INT32 x, INT32 y, INT32 option, const char *string);
|
||||
|
||||
#define V_DrawMenuString( x,y,option,string ) \
|
||||
V__DrawDupxString (x,y,FRACUNIT,option,NULL,MENU_FONT,string)
|
||||
|
||||
#define V_MenuStringWidth( string,option ) \
|
||||
V__IntegerStringWidth ( FRACUNIT,option,MENU_FONT,string )
|
||||
|
||||
void V_DrawCenteredMenuString(INT32 x, INT32 y, INT32 option, const char *string);
|
||||
void V_DrawRightAlignedMenuString(INT32 x, INT32 y, INT32 option, const char *string);
|
||||
|
||||
#define V_DrawGamemodeString( x,y,option,cm,string ) \
|
||||
V__DrawDupxString (x,y,FRACUNIT,option,cm,GM_FONT,string)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue