DungeonCrawl
|
Implementation of helper functions for menus. More...
#include "menu.h"
#include "../common.h"
#include "../io/input/input_handler.h"
#include "../io/output/common/output_handler.h"
#include "../logging/logger.h"
#include "local/save_menu_local.h"
#include <string.h>
Go to the source code of this file.
Functions | |
void | draw_menu (const char **menu_options, int menu_count, int selected_index) |
Draws a menu with the given options. | |
bool | show_confirmation (const char *message) |
Shows a confirmation dialog with the given message. |
Implementation of helper functions for menus.
Definition in file menu.c.
void draw_menu | ( | const char ** | menu_options, |
int | menu_count, | ||
int | selected_index ) |
Draws a menu with the given options.
menu_options | Array of menu option strings |
menu_count | Number of menu options |
selected_index | Currently selected menu index |
Definition at line 15 of file menu.c.
bool show_confirmation | ( | const char * | message | ) |
Shows a confirmation dialog with the given message.
message | The message to display |
Definition at line 39 of file menu.c.