The shader effects now work correctly on the scene actors, but the application of shaders should be on the animation class.

This commit is contained in:
Zed A. Shaw 2026-01-02 23:23:05 -05:00
parent 22db12f5e4
commit 05fc9062a7
11 changed files with 33 additions and 16 deletions

View file

@ -24,6 +24,7 @@ namespace gui {
{
$gui.set<Sprite>(button, {icon_name});
$gui.set<Sound>(button, {sound});
$gui.set<Effect>(button, {.duration=0.5f, .name=effect_name});
$gui.set<Clickable>(button,
guecs::make_action(button, event, {action}));

View file

@ -136,7 +136,7 @@ namespace gui {
set_event(game::Event::KEY_PRESS);
break;
default:
dbc::sentinel("invalid events");
dbc::sentinel(fmt::format("invalid events: {}", int(ev)));
}
}
}