Status UI now has a log and some buttons.

This commit is contained in:
Zed A. Shaw 2025-02-18 23:58:13 -05:00
parent 3a6ba8445a
commit bfe0d797c8
7 changed files with 61 additions and 17 deletions

View file

@ -27,7 +27,7 @@ namespace gui {
world.set<Sprite>(button, {"trash_button"});
world.set<Clickable>(button,
guecs::make_action(*$level.world, Events::GUI::ATTACK));
world.set<Textual>(button, {"Attack"});
world.set<Label>(button, {"Attack"});
} else if(name.starts_with("bar_")) {
$meter = $gui.entity(name);
world.set<lel::Cell>($meter, cell);