mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-31 12:13:16 +00:00
Add Medium Font
Monospaced in-between of Console & Thin
This commit is contained in:
parent
f4db29574d
commit
a7df7aa637
6 changed files with 21 additions and 6 deletions
|
|
@ -267,13 +267,15 @@ void HU_Init(void)
|
|||
PR ("STCFN");
|
||||
REG;
|
||||
|
||||
|
||||
PR ("MNUFN");
|
||||
REG;
|
||||
|
||||
PR ("TNYFN");
|
||||
REG;
|
||||
|
||||
PR ("MDFN");
|
||||
REG;
|
||||
|
||||
PR ("FILEF");
|
||||
REG;
|
||||
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ enum
|
|||
X (HU),
|
||||
X (MENU),
|
||||
X (TINY),
|
||||
X (MED),
|
||||
X (FILE),
|
||||
|
||||
X (LT),
|
||||
|
|
|
|||
10
src/k_vote.c
10
src/k_vote.c
|
|
@ -865,16 +865,16 @@ static void Y_DrawVoteSelection(fixed_t offset)
|
|||
);
|
||||
|
||||
size_t ci;
|
||||
for (ci = 0; ci < 10; ci++)
|
||||
for (ci = 0; ci < 12; ci++)
|
||||
{
|
||||
const size_t c = (ci + charAnim) % vote_draw.levels[i].str_len;
|
||||
|
||||
V_DrawCharacterScaled(
|
||||
(fx + (7 * dupx * ci)) << FRACBITS,
|
||||
(fy - fh + (2 * dupy)) << FRACBITS,
|
||||
(fx + (6 * dupx * ci)) << FRACBITS,
|
||||
(fy - fh + dupy) << FRACBITS,
|
||||
FRACUNIT,
|
||||
V_ORANGEMAP | V_NOSCALESTART,
|
||||
HU_FONT,
|
||||
V_ORANGEMAP | V_FORCEUPPERCASE | V_NOSCALESTART,
|
||||
MED_FONT,
|
||||
vote_draw.levels[i].str[c],
|
||||
NULL
|
||||
);
|
||||
|
|
|
|||
|
|
@ -175,6 +175,9 @@ int Draw::font_to_fontno(Font font)
|
|||
|
||||
case Font::kMenu:
|
||||
return MENU_FONT;
|
||||
|
||||
case Font::kMedium:
|
||||
return MED_FONT;
|
||||
}
|
||||
|
||||
return TINY_FONT;
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ public:
|
|||
kPing,
|
||||
kTimer,
|
||||
kMenu,
|
||||
kMedium,
|
||||
};
|
||||
|
||||
enum class Align
|
||||
|
|
|
|||
|
|
@ -2285,6 +2285,10 @@ static void V_GetFontSpecification(int fontno, INT32 flags, fontspec_t *result)
|
|||
break;
|
||||
}
|
||||
break;
|
||||
case MED_FONT:
|
||||
result->chw = 6;
|
||||
result->spacew = 6;
|
||||
break;
|
||||
case LT_FONT:
|
||||
result->spacew = 12;
|
||||
break;
|
||||
|
|
@ -2330,6 +2334,7 @@ static void V_GetFontSpecification(int fontno, INT32 flags, fontspec_t *result)
|
|||
case MENU_FONT:
|
||||
case TINY_FONT:
|
||||
case KART_FONT:
|
||||
case MED_FONT:
|
||||
result->lfh = 12;
|
||||
break;
|
||||
case LT_FONT:
|
||||
|
|
@ -2384,6 +2389,9 @@ static void V_GetFontSpecification(int fontno, INT32 flags, fontspec_t *result)
|
|||
else
|
||||
result->dim_fn = BunchedCharacterDim;
|
||||
break;
|
||||
case MED_FONT:
|
||||
result->dim_fn = FixedCharacterDim;
|
||||
break;
|
||||
case GM_FONT:
|
||||
if (result->chw)
|
||||
result->dim_fn = FixedCharacterDim;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue