Move the map_view and mini_map into gui as well.
This commit is contained in:
parent
bed5ce22d2
commit
a2246d2b71
6 changed files with 5 additions and 6 deletions
20
gui/mini_map.hpp
Normal file
20
gui/mini_map.hpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
#include "levelmanager.hpp"
|
||||
#include "textures.hpp"
|
||||
#include <guecs/ui.hpp>
|
||||
#include "tilemap.hpp"
|
||||
|
||||
namespace gui {
|
||||
class MiniMapUI {
|
||||
public:
|
||||
guecs::Textual $map_grid;
|
||||
guecs::UI $gui;
|
||||
GameLevel $level;
|
||||
shared_ptr<sf::Font> $font = nullptr;
|
||||
|
||||
MiniMapUI(GameLevel &level);
|
||||
void init(guecs::UI& overlay);
|
||||
void render(sf::RenderWindow &window, int compass_dir);
|
||||
void update_level(GameLevel &level);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue