GUI now handles modals better and there's now a death screen that makes you exit. More to come.
This commit is contained in:
parent
6cabd62c7f
commit
1f7214fcd4
2 changed files with 80 additions and 37 deletions
3
gui.hpp
3
gui.hpp
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue