Now have a nice panel to hold all the UI panels we'll use later.

This commit is contained in:
Zed A. Shaw 2024-11-11 12:23:40 -05:00
parent baaf56d4de
commit 9bc9c9007f
12 changed files with 123 additions and 83 deletions

View file

@ -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;