Now have a do_if on GUECS for many of the 'if this exists do this' patterns.

This commit is contained in:
Zed A. Shaw 2025-04-15 12:02:24 -04:00
parent 2ecef8d9f9
commit 57e042e786
5 changed files with 17 additions and 14 deletions

View file

@ -48,6 +48,7 @@ namespace gui {
$gui.set<Clickable>(button, {
[this](auto, auto){ select_ritual(); }
});
$gui.set<Sound>(button, {"pickup"});
} else {
$gui.set<Clickable>(button, {
[this](auto ent, auto data){ select_slot(ent, data); }