Middle menu class with 3 buttons and 1 title.
Definition page_3b_1t.hpp:26
~page_3b_1t()
Destructor for the middle menu page.
Definition page_3b_1t.cpp:40
bool action_handler(const SDL_Event &event)
Handles events for the menu buttons.
Definition page_3b_1t.cpp:58
SDL_Rect button_2
Definition page_3b_1t.hpp:36
SDL_Rect button_3
Definition page_3b_1t.hpp:37
int selected_button
Definition page_3b_1t.hpp:28
SDL_Texture * texture_middle_menu
Definition page_3b_1t.hpp:31
void render_object()
Renders the middle menu.
Definition page_3b_1t.cpp:111
page_3b_1t(SDL_Renderer *_renderer, TTF_Font *font)
Constructor for the middle menu page.
Definition page_3b_1t.cpp:24
int get_mode_type() const
Gets the current mode type.
Definition page_3b_1t.hpp:74
SDL_Renderer * renderer
Definition page_3b_1t.hpp:32
TTF_Font * police
Definition page_3b_1t.hpp:33
int get_selected_option() const
Gets the currently selected option.
Definition page_3b_1t.hpp:56
void set_mode_type(int type)
Sets the mode type to display appropriate options.
Definition page_3b_1t.hpp:80
int mode_type
Definition page_3b_1t.hpp:29
SDL_Rect button_1
Definition page_3b_1t.hpp:35