Renderer is now more standalone and doesn't try to protect against small maps, that's the GUI's job.
This commit is contained in:
parent
19b8bf1850
commit
15a302d133
11 changed files with 65 additions and 90 deletions
7
gui.hpp
7
gui.hpp
|
@ -22,8 +22,8 @@
|
|||
using std::string;
|
||||
using ftxui::Canvas, ftxui::Component, ftxui::Screen, ftxui::Button;
|
||||
|
||||
constexpr int SCREEN_X = 40;
|
||||
constexpr int SCREEN_Y = 30;
|
||||
constexpr int SCREEN_WIDTH = 40;
|
||||
constexpr int SCREEN_HEIGHT = 30;
|
||||
|
||||
struct ActionLog {
|
||||
std::deque<std::string> messages;
|
||||
|
@ -36,6 +36,8 @@ struct ActionLog {
|
|||
}
|
||||
};
|
||||
|
||||
const int GAME_MAP_POS = 600;
|
||||
|
||||
class GUI {
|
||||
string $status_text = "NOT DEAD";
|
||||
Canvas $canvas;
|
||||
|
@ -44,7 +46,6 @@ class GUI {
|
|||
Panel $status_ui;
|
||||
Panel $map_view;
|
||||
bool $show_modal = false;
|
||||
Point $view_port;
|
||||
Component $test_button;
|
||||
DinkyECS::World& $world;
|
||||
SoundManager $sounds;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue