Started the overlay UI but need to make it possible to add/remove components to it.

This commit is contained in:
Zed A. Shaw 2025-02-20 02:33:09 -05:00
parent 59d10a4506
commit 70a9420c11
8 changed files with 91 additions and 43 deletions

View file

@ -9,6 +9,7 @@
#include "map_view.hpp"
#include "combat_ui.hpp"
#include "status_ui.hpp"
#include "overlay_ui.hpp"
namespace gui {
enum class State {
@ -43,8 +44,6 @@ namespace gui {
class FSM : public DeadSimpleFSM<State, Event> {
public:
// ZED: these two will go away soon
int $rotation_count = 0;
float $rotation = -10.0f;
bool $draw_stats = false;
Point $player{0,0};
LevelManager $levels;
@ -54,6 +53,7 @@ namespace gui {
MapViewUI $map_view;
CombatUI $combat_view;
StatusUI $status_view;
OverlayUI $overlay_view;
CameraLOL $camera;
sf::Font $font;
sf::Text $text;
@ -77,7 +77,6 @@ namespace gui {
void try_move(int dir, bool strafe);
void keyboard();
void draw_weapon();
void draw_stats();
void draw_gui();
void draw_blood();