mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
srb2::Draw: add fonts kRollingNum and kRollingNum4P
This commit is contained in:
parent
840f5b7998
commit
9a7af6c592
5 changed files with 33 additions and 0 deletions
|
|
@ -319,6 +319,15 @@ void HU_Init(void)
|
|||
PR ("PRFN");
|
||||
REG;
|
||||
|
||||
DIM ('0', 10);
|
||||
DIG (2);
|
||||
|
||||
PR ("ROLNUM");
|
||||
REG;
|
||||
|
||||
PR ("RO4NUM");
|
||||
REG;
|
||||
|
||||
DIG (3);
|
||||
|
||||
ADIM (KART);
|
||||
|
|
|
|||
|
|
@ -80,6 +80,8 @@ enum
|
|||
X (NIGHTSNUM),
|
||||
X (PINGNUM),
|
||||
X (PROFNUM),
|
||||
X (ROLNUM),
|
||||
X (RO4NUM),
|
||||
|
||||
X (KART),
|
||||
X (TIMER),
|
||||
|
|
|
|||
|
|
@ -308,6 +308,12 @@ int Draw::font_to_fontno(Font font)
|
|||
|
||||
case Font::kMedium:
|
||||
return MED_FONT;
|
||||
|
||||
case Font::kRollingNum:
|
||||
return ROLNUM_FONT;
|
||||
|
||||
case Font::kRollingNum4P:
|
||||
return RO4NUM_FONT;
|
||||
}
|
||||
|
||||
return TINY_FONT;
|
||||
|
|
|
|||
|
|
@ -41,6 +41,8 @@ public:
|
|||
kThinTimer,
|
||||
kMenu,
|
||||
kMedium,
|
||||
kRollingNum,
|
||||
kRollingNum4P,
|
||||
};
|
||||
|
||||
enum class Align
|
||||
|
|
|
|||
|
|
@ -2342,6 +2342,12 @@ static void V_GetFontSpecification(int fontno, INT32 flags, fontspec_t *result)
|
|||
case PINGF_FONT:
|
||||
result->spacew = 3;
|
||||
break;
|
||||
case ROLNUM_FONT:
|
||||
result->spacew = 17;
|
||||
break;
|
||||
case RO4NUM_FONT:
|
||||
result->spacew = 9;
|
||||
break;
|
||||
}
|
||||
|
||||
switch (fontno)
|
||||
|
|
@ -2373,6 +2379,12 @@ static void V_GetFontSpecification(int fontno, INT32 flags, fontspec_t *result)
|
|||
case PINGF_FONT:
|
||||
result->lfh = 10;
|
||||
break;
|
||||
case ROLNUM_FONT:
|
||||
result->lfh = 33;
|
||||
break;
|
||||
case RO4NUM_FONT:
|
||||
result->lfh = 15;
|
||||
break;
|
||||
}
|
||||
|
||||
switch (fontno)
|
||||
|
|
@ -2432,6 +2444,8 @@ static void V_GetFontSpecification(int fontno, INT32 flags, fontspec_t *result)
|
|||
break;
|
||||
case OPPRF_FONT:
|
||||
case PINGF_FONT:
|
||||
case ROLNUM_FONT:
|
||||
case RO4NUM_FONT:
|
||||
if (result->chw)
|
||||
result->dim_fn = FixedCharacterDim;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue