font: tweak sizes of stats
This commit is contained in:
parent
59db4e7d79
commit
4178c540a6
1 changed files with 5 additions and 5 deletions
10
src/render.c
10
src/render.c
|
|
@ -233,21 +233,21 @@ void render_ui(const Player *p, Font *font) {
|
|||
// ATK
|
||||
char atk_text[16];
|
||||
snprintf(atk_text, sizeof(atk_text), "%d", p->attack);
|
||||
DrawTextEx(*font, atk_text, (Vector2){stats_x + stat_spacing, stats_y}, 14, norm_space, YELLOW);
|
||||
DrawTextEx(*font, "ATK", (Vector2){stats_x + stat_spacing, stats_y + 16}, 9, nar_space, text_dim);
|
||||
DrawTextEx(*font, atk_text, (Vector2){stats_x + stat_spacing, stats_y}, 16, norm_space, YELLOW);
|
||||
DrawTextEx(*font, "ATK", (Vector2){stats_x + stat_spacing, stats_y + 16}, 12, nar_space, text_dim);
|
||||
|
||||
// DEF
|
||||
char def_text[16];
|
||||
snprintf(def_text, sizeof(def_text), "%d", p->defense);
|
||||
DrawTextEx(*font, def_text, (Vector2){stats_x + stat_spacing * 2, stats_y}, 14, norm_space,
|
||||
DrawTextEx(*font, def_text, (Vector2){stats_x + stat_spacing * 2, stats_y}, 16, norm_space,
|
||||
(Color){100, 150, 255, 255});
|
||||
DrawTextEx(*font, "DEF", (Vector2){stats_x + stat_spacing * 2, stats_y + 16}, 9, nar_space, text_dim);
|
||||
DrawTextEx(*font, "DEF", (Vector2){stats_x + stat_spacing * 2, stats_y + 16}, 12, nar_space, text_dim);
|
||||
|
||||
int equip_x = section2_end + 15;
|
||||
int equip_y = hud_y + 8;
|
||||
|
||||
// Weapon slot
|
||||
DrawTextEx(*font, "WEAPON", (Vector2){equip_x, equip_y}, 9, nar_space, text_dim);
|
||||
DrawTextEx(*font, "WEAPON", (Vector2){equip_x, equip_y}, 12, nar_space, text_dim);
|
||||
if (p->has_weapon) {
|
||||
const char *weapon_name = item_get_name(&p->equipped_weapon);
|
||||
if (weapon_name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue