Clicker has a bark now.

This commit is contained in:
Zed A. Shaw 2025-05-11 00:44:35 -04:00
parent 04f6fef921
commit 9a4b0adc1f
4 changed files with 9 additions and 1 deletions

View file

@ -37,12 +37,14 @@ struct ClickerUI {
if(name != "clicker") {
$gui.set<guecs::Rectangle>(id, {});
$gui.set<guecs::Effect>(id, {});
$gui.set<guecs::Label>(id, { guecs::to_wstring(name) });
$gui.set<guecs::Sprite>(id, { "clicker_treat_bone" });
fmt::println("button dim: {},{}", cell.w, cell.h);
$gui.set<guecs::Clickable>(id, {
[&](auto, auto) { handle_button(Event::A_BUTTON); }
});
} else {
$gui.set<guecs::Sprite>(id, {"clicker_the_dog"});
$gui.set<guecs::Sound>(id, {"clicker_bark"});
$gui.set<guecs::Effect>(id, {0.1f, "ui_shader"});
$gui.set<guecs::Clickable>(id, {
[&](auto, auto) { handle_button(Event::CLICKER); }