New design on LEL that's way more sane and allows for more flexible columns and rows.

This commit is contained in:
Zed A. Shaw 2025-02-16 11:50:14 -05:00
parent f884b83809
commit 79c84ce885
8 changed files with 83 additions and 78 deletions

View file

@ -354,7 +354,7 @@ namespace gui {
void FSM::mouse() {
if(sf::Mouse::isButtonPressed(sf::Mouse::Button::Left)) {
sf::Vector2i pos = sf::Mouse::getPosition($window);
sf::Vector2f pos = $window.mapPixelToCoords(sf::Mouse::getPosition($window));
$combat_view.click(pos.x, pos.y);
}
}