GUI now handles modals better and there's now a death screen that makes you exit. More to come.

This commit is contained in:
Zed A. Shaw 2025-01-07 15:04:28 -05:00
parent 6cabd62c7f
commit 1f7214fcd4
2 changed files with 80 additions and 37 deletions

View file

@ -120,6 +120,7 @@ class GUI {
Canvas $canvas;
bool $inventory_open = false;
bool $player_died = false;
bool $modal_shown = false;
Component $test_button;
SoundManager $sounds;
SFMLRender $renderer;
@ -134,6 +135,8 @@ public:
void resize_map(int new_size);
void create_renderer();
void render_scene();
bool modal_ui_events();
bool game_ui_events();
bool handle_ui_events();
void handle_world_events();
void draw_screen(bool clear=true, float map_off_x=0.0f, float map_off_y=0.0f);