|
|
|
@ -147,7 +147,9 @@ namespace gui { |
|
|
|
|
auto gui_id = std::any_cast<DinkyECS::Entity>(data); |
|
|
|
|
|
|
|
|
|
if($grab_source) { |
|
|
|
|
if($status_ui.commit_drop(gui_id)) { |
|
|
|
|
auto& drop = $status_ui.get_drop_target(gui_id); |
|
|
|
|
|
|
|
|
|
if(drop.commit()) { |
|
|
|
|
$loot_ui.commit_grab(*$grab_source); |
|
|
|
|
$grab_source = std::nullopt; |
|
|
|
|
} |
|
|
|
@ -192,7 +194,9 @@ namespace gui { |
|
|
|
|
auto gui_id = std::any_cast<DinkyECS::Entity>(data); |
|
|
|
|
|
|
|
|
|
if($grab_source) { |
|
|
|
|
if($loot_ui.commit_drop(gui_id)) { |
|
|
|
|
auto& drop = $loot_ui.get_drop_target(gui_id); |
|
|
|
|
|
|
|
|
|
if(drop.commit()) { |
|
|
|
|
$status_ui.commit_grab(*$grab_source); |
|
|
|
|
$grab_source = std::nullopt; |
|
|
|
|
} |
|
|
|
|