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

@ -23,9 +23,8 @@ namespace gui {
void update();
bool mouse(float x, float y, bool hover);
guecs::GrabSource& get_grab_source(DinkyECS::Entity entity);
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);