Now have a do_if on GUECS for many of the 'if this exists do this' patterns.
This commit is contained in:
parent
2ecef8d9f9
commit
57e042e786
5 changed files with 17 additions and 14 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue