There's a UISystem now for to compliment the entities and components in GUECS. I now use that to do the drag/drop transfers instead of raw code right in the FSM.
This commit is contained in:
parent
e01e697535
commit
4a48910273
11 changed files with 62 additions and 60 deletions
|
@ -101,16 +101,6 @@ namespace gui {
|
|||
}
|
||||
}
|
||||
|
||||
guecs::DropTarget& StatusUI::get_drop_target(DinkyECS::Entity gui_id) {
|
||||
return $gui.get<guecs::DropTarget>(gui_id);
|
||||
}
|
||||
|
||||
guecs::GrabSource& StatusUI::get_grab_source(DinkyECS::Entity gui_id) {
|
||||
dbc::check($gui.has<guecs::GrabSource>(gui_id), "invalid GrabSource requested, entity isn't in the GUI.");
|
||||
|
||||
return $gui.get<guecs::GrabSource>(gui_id);
|
||||
}
|
||||
|
||||
void StatusUI::remove_slot(DinkyECS::Entity slot_id) {
|
||||
if(contents.contains(slot_id)) {
|
||||
contents.erase(slot_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue