Skip to content

Commit

Permalink
Implement more of InGameUI (#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonwil committed Jan 30, 2024
1 parent 0524e8b commit eff5c4e
Show file tree
Hide file tree
Showing 11 changed files with 1,325 additions and 33 deletions.
2 changes: 1 addition & 1 deletion src/game/client/globallanguage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void GlobalLanguage::Init()
int GlobalLanguage::Adjust_Font_Size(int size)
{
float adjustment = std::clamp(
(((g_theWriteableGlobalData->m_xResolution / 800) - 1.0f) * m_resolutionFontAdjustment) + 1.0f, 1.0f, 2.0f);
(((g_theWriteableGlobalData->m_xResolution / 800.0f) - 1.0f) * m_resolutionFontAdjustment) + 1.0f, 1.0f, 2.0f);

return GameMath::Fast_To_Int_Floor(adjustment * size);
}
Expand Down
2 changes: 2 additions & 0 deletions src/game/client/globallanguage.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ class GlobalLanguage : public SubsystemInterface
const FontDesc &Superweapon_Countdown_Ready_Font() const { return m_superweaponCountdownReadyFont; }
const FontDesc &Named_Timer_Countdown_Normal_Font() const { return m_namedTimerCountdownNormalFont; }
const FontDesc &Named_Timer_Countdown_Ready_Font() const { return m_namedTimerCountdownReadyFont; }
int Get_Military_Caption_Delay_MS() const { return m_militaryCaptionDelayMs; }
int Get_Military_Caption_Speed() const { return m_militaryCaptionSpeed; }

static void Parse_Language_Definition(INI *ini);
static void Parse_Font_Filename(INI *ini, void *formal, void *store, void const *user_data);
Expand Down

0 comments on commit eff5c4e

Please sign in to comment.