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

@ -17,7 +17,7 @@ namespace gui {
auto button = $gui.entity(name);
$gui.set<Sprite>(button, {"leather_pouch-128"});
// $gui.set<Rectangle>(button, {});
$gui.set<Sound>(button, {"ui_click", "ui_hover"});
$gui.set<Sound>(button, {"ui_click"});
$gui.set<Label>(button, {label});
$gui.set<Effect>(button, {.duration=0.1f});
$gui.set<Clickable>(button,