Get rid of the sprite on buttons until I have a better idea about the overall design.
This commit is contained in:
parent
baa4d8ee2b
commit
59d10a4506
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ namespace gui {
|
|||
if(name.starts_with("button_")) {
|
||||
auto button = $gui.entity(name);
|
||||
world.set<lel::Cell>(button, cell);
|
||||
world.set<Sprite>(button, {"trash_button"});
|
||||
world.set<Rectangle>(button, {});
|
||||
world.set<Clickable>(button,
|
||||
guecs::make_action(*$level.world, Events::GUI::ATTACK));
|
||||
world.set<Label>(button, {"Attack"});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue