Making Icons a thing again since it's convenient.

This commit is contained in:
Zed A. Shaw 2025-07-23 13:49:16 -04:00
parent 7e64879f78
commit 4c019048d0
4 changed files with 35 additions and 1 deletions

View file

@ -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); }
});