Can now drag an item out of inventory and drop on the ground, then pick it back up, and put it in a loot container, and then back again. Still buggy but working for now.
This commit is contained in:
parent
68e50342e5
commit
119b3ed11d
7 changed files with 58 additions and 6 deletions
|
@ -114,6 +114,8 @@ namespace gui {
|
|||
case MOUSE_DROP: {
|
||||
auto& grab = $status_ui.$gui.get<guecs::GrabSource>(*$grab_source);
|
||||
grab.commit();
|
||||
bool dropped = $status_ui.drop_item(grab.world_entity);
|
||||
dbc::check(dropped, "DROP FAILED!");
|
||||
END(Event::CLOSE);
|
||||
} break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue