Can click on buttons and make them change color.

This commit is contained in:
Zed A. Shaw 2025-02-15 14:29:27 -05:00
parent 7f9e200abe
commit e106ad4be7
4 changed files with 17 additions and 7 deletions

View file

@ -10,10 +10,11 @@ namespace gui {
public:
lel::Parser $layout;
GameLevel $level;
std::vector<sf::RectangleShape> $shapes;
std::unordered_map<std::string, sf::RectangleShape> $shapes;
CombatUI(GameLevel level);
void draw(sf::RenderWindow& window);
void update_level(GameLevel &level) { $level = level; }
void click(int x, int y);
};
}