diff options
Diffstat (limited to 'src/game_loop/ui.h')
-rw-r--r-- | src/game_loop/ui.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game_loop/ui.h b/src/game_loop/ui.h index 7a8ffbd..073824e 100644 --- a/src/game_loop/ui.h +++ b/src/game_loop/ui.h @@ -17,3 +17,8 @@ void hh_ui_show_hp(int* idx, hh_entity* player, uint8_t max_hp, vec_cor cam_pos) void hh_ui_show_char(int* idx, char* str, vec2 pos); +/** @brief converts char* [0] to i and [1]='\0' */ +void itoa(char *c, int i); + +/** @brief moves 'cursor' through selection field */ +void hh_shift_selected(uint8_t *pos, bool dir, uint8_t min, uint8_t max); |