DungeonCrawl
Loading...
Searching...
No Matches
menu.h
Go to the documentation of this file.
1
5#ifndef MENU_H
6#define MENU_H
7
8
9#include <stdbool.h>
10
11// Menu options strings
12#define NEW_GAME_OPTION "New Game"
13#define CONTINUE_OPTION "Continue"
14#define SAVE_GAME_OPTION "Save Game"
15#define LOAD_GAME_OPTION "Load Game"
16#define CHANGE_LANGUAGE_OPTION "Change Language"
17#define EXIT_OPTION "Exit"
18
19// Menu constants
20#define TITLE "DUNGEON CRAWL"
21#define TITLE_COLOR TB_RED
22#define MENU_START_Y 5
23#define MENU_START_X 10
24#define MENU_ITEM_SPACING 2
25
26typedef enum {
27 MENU_START_GAME,
28 MENU_CONTINUE,
29 MENU_SAVE_GAME,
30 MENU_LOAD_GAME,
31 MENU_CHANGE_LANGUAGE,
32 MENU_EXIT
33} menu_result_t;
34
40bool show_confirmation(const char* message);
41
48void draw_menu(const char** menu_options, int menu_count, int selected_index);
49
50#endif// MENU_H
bool show_confirmation(const char *message)
Shows a confirmation dialog with the given message.
Definition menu.c:39
void draw_menu(const char **menu_options, int menu_count, int selected_index)
Draws a menu with the given options.
Definition menu.c:15