Now Sprite can do either aspect_ratio scaling or stretching and Icon is just a subclass.
This commit is contained in:
parent
b7cfa4db2d
commit
a22342cd7e
3 changed files with 13 additions and 43 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue