GUECS now has a click_on function so you can programatically click on buttons for testing.

This commit is contained in:
Zed A. Shaw 2025-05-03 12:18:39 -04:00
parent 78ba83e916
commit 70d27b9a95
2 changed files with 25 additions and 6 deletions

View file

@ -155,6 +155,8 @@ namespace guecs {
void init();
void render(sf::RenderWindow& window);
bool mouse(float x, float y, bool hover);
void click_on(const std::string& name, bool required=false);
void click_on(DinkyECS::Entity slot_id);
void debug_layout(sf::RenderWindow& window);
template <typename Comp>