Can click on buttons and make them change color.
This commit is contained in:
parent
7f9e200abe
commit
e106ad4be7
4 changed files with 17 additions and 7 deletions
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue