Combat UI's elements are now pulled out into gui_gadgets so we have an initial prototype on basic UI elements needed.

This commit is contained in:
Zed A. Shaw 2025-02-16 21:19:21 -05:00
parent 7c1f05c801
commit 8d9c2d8c05
5 changed files with 99 additions and 43 deletions

View file

@ -6,6 +6,7 @@
#include <SFML/Graphics/Font.hpp>
#include <SFML/Graphics/Text.hpp>
#include "lel.hpp"
#include "gui_gadgets.hpp"
namespace gui {
class CombatUI {
@ -17,9 +18,9 @@ namespace gui {
GameLevel $level;
sf::Font $font;
sf::RectangleShape $background;
std::unordered_map<std::string, sf::RectangleShape> $shapes;
std::unordered_map<std::string, sf::RectangleShape> $label_boxes;
std::vector<sf::Text> $labels;
std::unordered_map<std::string, gui::Button> $buttons;
std::vector<gui::Label> $labels;
std::unordered_map<std::string, gui::Meter> $meters;
CombatUI(GameLevel level);
void render();