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:
Zed A. Shaw 2025-06-19 00:45:22 -04:00
parent 68e50342e5
commit 119b3ed11d
7 changed files with 58 additions and 6 deletions

View file

@ -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: