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:
Zed A. Shaw 2025-06-10 00:52:38 -04:00
parent 570b70ab0c
commit be7b86a913
6 changed files with 17 additions and 13 deletions

View file

@ -24,7 +24,7 @@ namespace gui {
guecs::GrabSource& get_grab_source(DinkyECS::Entity entity);
std::optional<DinkyECS::Entity> begin_grab(DinkyECS::Entity slot);
void commit_grab(DinkyECS::Entity slot_id);
void remove_slot(DinkyECS::Entity slot_id);
guecs::DropTarget& get_drop_target(DinkyECS::Entity gui_id);
bool place_slot(DinkyECS::Entity gui_id, DinkyECS::Entity world_entity);