Making Icons a thing again since it's convenient.
This commit is contained in:
parent
7e64879f78
commit
4c019048d0
4 changed files with 35 additions and 1 deletions
|
@ -92,7 +92,7 @@ struct ClickerUI {
|
|||
auto id = $gui.entity(name);
|
||||
if(name != "clicker") {
|
||||
$gui.set<guecs::Effect>(id, {});
|
||||
$gui.set<guecs::Sprite>(id, { "clicker_treat_bone" });
|
||||
$gui.set<guecs::Icon>(id, { "clicker_treat_bone" });
|
||||
$gui.set<guecs::Clickable>(id, {
|
||||
[&](auto, auto) { handle_button(Event::A_BUTTON); }
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue