Mirai-Team / mirai-project

C++ library for games making purposes.
Other
3 stars 0 forks source link

Clickable widget hitbox #53

Closed Lomadriel closed 9 years ago

Lomadriel commented 9 years ago

We should add a hitbox support for clickable widget. Moreover maybe support a detection of sf::Color::Transparent and set this color as non-clickable.

CBenoit commented 9 years ago

Definitly possible ! myTexture.copyToImage().getPixel(x, y);

http://www.sfml-dev.org/documentation/2.2-fr/classsf_1_1Texture.php#aefc19bcd95565dd2348fd4cec0facddc http://www.sfml-dev.org/documentation/2.2-fr/classsf_1_1Image.php#a8c8460e311dcb00557cb00a81c29163d

Lomadriel commented 9 years ago

I have work on it and it's done. See #54