There's now a GUI that shows up when you interact with stairs down.
This commit is contained in:
parent
e63a8dd920
commit
269af02993
3 changed files with 41 additions and 0 deletions
15
gui.hpp
15
gui.hpp
|
@ -59,6 +59,19 @@ class DeathUI : public Panel {
|
|||
void create_render();
|
||||
};
|
||||
|
||||
class NextLevelUI : public Panel {
|
||||
public:
|
||||
Component $render = nullptr;
|
||||
Component $yes_button = nullptr;
|
||||
Component $no_button = nullptr;
|
||||
std::string $message = "Are you ready to go further down?";
|
||||
|
||||
NextLevelUI() :
|
||||
Panel(INVENTORY_PIXEL_X, INVENTORY_PIXEL_Y, INVENTORY_WIDTH, INVENTORY_HEIGHT) {}
|
||||
|
||||
void create_render();
|
||||
};
|
||||
|
||||
class InventoryUI : public Panel {
|
||||
public:
|
||||
|
||||
|
@ -117,10 +130,12 @@ class GUI {
|
|||
MapViewUI $map_view;
|
||||
InventoryUI $inventory_ui;
|
||||
DeathUI $death_ui;
|
||||
NextLevelUI $next_level_ui;
|
||||
Canvas $canvas;
|
||||
bool $inventory_open = false;
|
||||
bool $player_died = false;
|
||||
bool $modal_shown = false;
|
||||
bool $next_level = false;
|
||||
Component $test_button;
|
||||
SoundManager $sounds;
|
||||
SFMLRender $renderer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue