Just had to grab the sprite, duh. Closes #3.
This commit is contained in:
parent
1baf90a776
commit
af3568154a
2 changed files with 1 additions and 8 deletions
|
@ -219,6 +219,7 @@ namespace gui {
|
|||
auto gui_id = std::any_cast<guecs::Entity>(data);
|
||||
|
||||
if(auto source = gui.get_if<guecs::GrabSource>(gui_id)) {
|
||||
$grab_sprite = source->sprite;
|
||||
source->grab();
|
||||
return gui_id;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue