font: fully implemented font changes to UI, size/spacing need tweaking

This commit is contained in:
A.M. Rowsell 2026-04-09 12:13:00 -04:00 committed by raf
commit 40a5e6789c
4 changed files with 77 additions and 70 deletions

View file

@ -571,16 +571,16 @@ static void game_loop(void) {
render_ui(&gs.player, &fontTTF);
// Draw action log
render_action_log(gs.action_log, gs.log_count, gs.log_head);
render_action_log(gs.action_log, gs.log_count, gs.log_head, &fontTTF);
// Draw inventory overlay if active
if (gs.show_inventory) {
render_inventory_overlay(&gs.player, gs.inv_selected);
render_inventory_overlay(&gs.player, gs.inv_selected, &fontTTF);
}
// Draw message if any
if (gs.last_message != NULL && gs.message_timer > 0) {
render_message(gs.last_message);
render_message(gs.last_message, &fontTTF);
}
// Draw game over screen
@ -593,7 +593,7 @@ static void game_loop(void) {
}
render_end_screen(gs.game_won, gs.total_kills, gs.items_collected, gs.damage_dealt, gs.damage_taken,
gs.crits_landed, gs.times_hit, gs.potions_used, gs.floors_reached, gs.turn_count,
gs.final_score);
gs.final_score, &fontTTF);
}
EndDrawing();