Mercurial > molko
comparison src/libmlk-rpg/rpg/battle-indicator.c @ 431:8f59201dc76b
core: cleanup hierarchy
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 15 Oct 2022 20:23:14 +0200 |
parents | 460c78706989 |
children | 862b15c3a3ae |
comparison
equal
deleted
inserted
replaced
430:1645433e008d | 431:8f59201dc76b |
---|---|
19 #include <assert.h> | 19 #include <assert.h> |
20 #include <math.h> | 20 #include <math.h> |
21 #include <stdio.h> | 21 #include <stdio.h> |
22 #include <string.h> | 22 #include <string.h> |
23 | 23 |
24 #include <core/color.h> | 24 #include <mlk/core/color.h> |
25 #include <core/font.h> | 25 #include <mlk/core/font.h> |
26 #include <core/panic.h> | 26 #include <mlk/core/panic.h> |
27 | 27 |
28 #include <ui/theme.h> | 28 #include <ui/theme.h> |
29 | 29 |
30 #include "battle-indicator.h" | 30 #include "battle-indicator.h" |
31 | 31 |
59 snprintf(buf, sizeof (buf), "%u", bti->amount); | 59 snprintf(buf, sizeof (buf), "%u", bti->amount); |
60 | 60 |
61 bti->cur = 0xffffffff; | 61 bti->cur = 0xffffffff; |
62 bti->elapsed = 0; | 62 bti->elapsed = 0; |
63 bti->alpha = 250; | 63 bti->alpha = 250; |
64 | 64 |
65 if (font_render(theme->fonts[THEME_FONT_INTERFACE], &bti->tex[0], buf, bti->cur) < 0|| | 65 if (font_render(theme->fonts[THEME_FONT_INTERFACE], &bti->tex[0], buf, bti->cur) < 0|| |
66 font_render(theme->fonts[THEME_FONT_INTERFACE], &bti->tex[1], buf, 0x000000ff) < 0) | 66 font_render(theme->fonts[THEME_FONT_INTERFACE], &bti->tex[1], buf, 0x000000ff) < 0) |
67 panic(); | 67 panic(); |
68 } | 68 } |
69 | 69 |