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
5
gui.cpp
5
gui.cpp
|
@ -346,7 +346,10 @@ namespace gui {
|
|||
}
|
||||
|
||||
void FSM::mouse() {
|
||||
// temporarily gutted
|
||||
if(sf::Mouse::isButtonPressed(sf::Mouse::Button::Left)) {
|
||||
sf::Vector2i pos = sf::Mouse::getPosition($window);
|
||||
$combat_view.click(pos.x, pos.y);
|
||||
}
|
||||
}
|
||||
|
||||
void FSM::generate_map() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue