Clean up the GUI some by moving the map_view out into its own file.
This commit is contained in:
parent
421cca308b
commit
6da830595c
5 changed files with 94 additions and 81 deletions
20
map_view.hpp
Normal file
20
map_view.hpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
#include "panel.hpp"
|
||||
#include <ftxui/dom/canvas.hpp>
|
||||
#include "levelmanager.hpp"
|
||||
|
||||
using ftxui::Canvas;
|
||||
|
||||
namespace gui {
|
||||
class MapViewUI : public Panel {
|
||||
public:
|
||||
Canvas $canvas;
|
||||
GameLevel $level;
|
||||
|
||||
MapViewUI(GameLevel &level);
|
||||
void create_render();
|
||||
void resize_canvas();
|
||||
void draw_map();
|
||||
void update_level(GameLevel &level);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue