Mostly refactored out the common things for drag/drop so now just to refine how it's used and bring back moving the sprite around.
This commit is contained in:
parent
570b70ab0c
commit
be7b86a913
6 changed files with 17 additions and 13 deletions
|
@ -9,7 +9,8 @@ namespace guecs {
|
|||
Clickable make_action(DinkyECS::World& target, Events::GUI event, std::any data);
|
||||
|
||||
struct GrabSource {
|
||||
DinkyECS::Entity world_entity = 0;
|
||||
DinkyECS::Entity world_entity;
|
||||
std::function<void()> commit;
|
||||
|
||||
DinkyECS::Entity grab();
|
||||
void move(sf::Vector2i position);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue