#pragma once #include "panel.hpp" #include "levelmanager.hpp" #include #include #include #include #include "lel.hpp" namespace gui { class CombatUI { public: std::string $grid = "[*%(200,90)hp | _ | *%(200,90)ap | _ ]" "[attack1 | attack2 | attack3 | heal]"; lel::Parser $layout; GameLevel $level; sf::Font $font; std::unordered_map $shapes; std::unordered_map $label_boxes; std::vector $labels; CombatUI(GameLevel level); void render(); void draw(sf::RenderWindow& window); void update_level(GameLevel &level) { $level = level; } void click(int x, int y); }; }