Better meaning API on both sides for the drag-n-drop operations, but I _swear_ there's a way to do this in the GrabSource/DropTarget instead.
This commit is contained in:
parent
47c219b86e
commit
3e0adf0c22
6 changed files with 26 additions and 23 deletions
|
@ -21,9 +21,9 @@ namespace gui {
|
|||
void render(sf::RenderWindow& window);
|
||||
void update_level(GameLevel &level);
|
||||
bool mouse(float x, float y, bool hover);
|
||||
std::optional<DinkyECS::Entity> select_slot(DinkyECS::Entity slot);
|
||||
void remove_slot(DinkyECS::Entity slot_id);
|
||||
guecs::GrabSource& get_grabber(DinkyECS::Entity entity);
|
||||
bool has_grabber(DinkyECS::Entity gui_id);
|
||||
std::optional<DinkyECS::Entity> start_grab(DinkyECS::Entity slot);
|
||||
guecs::GrabSource& get_grab_source(DinkyECS::Entity entity);
|
||||
bool has_grab_source(DinkyECS::Entity gui_id);
|
||||
void commit_drop(DinkyECS::Entity slot_id);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue