Bring back the convenience method to click on a cell by name.

This commit is contained in:
Zed A. Shaw 2025-08-14 13:01:27 -04:00
parent 4b4992185f
commit 41d568ab25
2 changed files with 5 additions and 0 deletions

View file

@ -220,6 +220,10 @@ namespace guecs {
}
}
void UI::click_on(const std::string& name, Modifiers mods) {
click_on(entity(name), mods);
}
void UI::click_on(Entity gui_id, Modifiers mods) {
if(auto to_click = get_if<Clickable>(gui_id)) {
to_click->action(mods);