Have a basic little click sound going, but hover events will need some work. I'm doing those on every mouse move.

This commit is contained in:
Zed A. Shaw 2025-04-15 11:38:38 -04:00
parent 7186c2ecb0
commit 2ecef8d9f9
6 changed files with 36 additions and 11 deletions

View file

@ -17,6 +17,7 @@ namespace gui {
auto button = $gui.entity(name);
$gui.set<Sprite>(button, {"leather_pouch-128"});
// $gui.set<Rectangle>(button, {});
$gui.set<Sound>(button, {"ui_click", "ui_hover"});
$gui.set<Label>(button, {label});
$gui.set<Effect>(button, {.duration=0.1f});
$gui.set<Clickable>(button,