Skip to content

Commit

Permalink
Popup font changing
Browse files Browse the repository at this point in the history
sar_rhythmgame_font
  • Loading branch information
AlexAdvDev committed Oct 15, 2024
1 parent 3930002 commit 98e94f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Features/Hud/RhythmGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Variable sar_rhythmgame("sar_rhythmgame", "0", "Show a HUD indicating your groun

// Customization
Variable sar_rhythmgame_combo("sar_rhythmgame_combo", "1", "Show a combo counter on the rhythm game HUD.\n");
Variable sar_rhythmgame_font("sar_rhythmgame_font", "64", "The font to use for the rhythm game HUD.\n");

bool RhythmGameHud::ShouldDraw() {
return sar_rhythmgame.GetBool();
Expand All @@ -30,7 +31,7 @@ void RhythmGameHud::HandleGroundframeLogic(int slot, bool grounded) {
}

void RhythmGameHud::Paint(int slot) {
auto font = scheme->GetFontByID(49);
auto font = scheme->GetFontByID(sar_rhythmgame_font.GetInt());
float fh = surface->GetFontHeight(font);

for (unsigned i = 0; i < popups.size(); i++) {
Expand Down

0 comments on commit 98e94f7

Please sign in to comment.