Now Sprite can do either aspect_ratio scaling or stretching and Icon is just a subclass.

This commit is contained in:
Zed A. Shaw 2025-07-22 16:22:05 -04:00
parent b7cfa4db2d
commit a22342cd7e
3 changed files with 13 additions and 43 deletions

View file

@ -101,7 +101,7 @@ struct ClickerUI {
}
$clicker = $gui.entity("clicker");
$gui.set<guecs::Sprite>($clicker, {"clicker_the_dog"});
$gui.set<guecs::Sprite>($clicker, {"clicker_the_dog", 0, true});
$gui.set<guecs::Sound>($clicker, {"clicker_bark"});
$gui.set<guecs::Clickable>($clicker, {
[&](auto, auto) { handle_button(Event::CLICKER); }