Now have a nice panel to hold all the UI panels we'll use later.
This commit is contained in:
parent
baaf56d4de
commit
9bc9c9007f
12 changed files with 123 additions and 83 deletions
8
gui.hpp
8
gui.hpp
|
@ -14,6 +14,7 @@
|
|||
#include "components.hpp"
|
||||
#include "sound.hpp"
|
||||
#include "render.hpp"
|
||||
#include "panel.hpp"
|
||||
|
||||
using std::string;
|
||||
using ftxui::Canvas, ftxui::Component, ftxui::Screen;
|
||||
|
@ -35,14 +36,11 @@ struct ActionLog {
|
|||
class GUI {
|
||||
string $status_text = "NOT DEAD";
|
||||
Canvas $canvas;
|
||||
Component $status_ui;
|
||||
Component $prompt;
|
||||
Component $map_view;
|
||||
Map& $game_map;
|
||||
ActionLog $log;
|
||||
Panel $status_ui;
|
||||
Panel $map_view;
|
||||
Point $view_port;
|
||||
Screen $status_screen;
|
||||
Screen $map_screen;
|
||||
DinkyECS::World& $world;
|
||||
SoundManager $sounds;
|
||||
SFMLRender $renderer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue