|
|
@ -136,11 +136,9 @@ namespace gui { |
|
|
|
$grab_source = std::any_cast<DinkyECS::Entity>(data); |
|
|
|
$grab_source = std::any_cast<DinkyECS::Entity>(data); |
|
|
|
|
|
|
|
|
|
|
|
if(auto world_entity = $loot_ui.begin_grab(*$grab_source)) { |
|
|
|
if(auto world_entity = $loot_ui.begin_grab(*$grab_source)) { |
|
|
|
$window.setMouseCursorVisible(false); |
|
|
|
|
|
|
|
$status_ui.begin_drop(*world_entity); |
|
|
|
$status_ui.begin_drop(*world_entity); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// BUG: need a cancel operation here
|
|
|
|
// BUG: need a cancel operation here
|
|
|
|
$window.setMouseCursorVisible(true); |
|
|
|
|
|
|
|
$grab_source = std::nullopt; |
|
|
|
$grab_source = std::nullopt; |
|
|
|
state(State::LOOTING); |
|
|
|
state(State::LOOTING); |
|
|
|
} |
|
|
|
} |
|
|
@ -154,7 +152,6 @@ namespace gui { |
|
|
|
$grab_source = std::nullopt; |
|
|
|
$grab_source = std::nullopt; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$window.setMouseCursorVisible(true); |
|
|
|
|
|
|
|
state(State::LOOTING); |
|
|
|
state(State::LOOTING); |
|
|
|
} |
|
|
|
} |
|
|
|
} break; |
|
|
|
} break; |
|
|
@ -200,7 +197,6 @@ namespace gui { |
|
|
|
$grab_source = std::nullopt; |
|
|
|
$grab_source = std::nullopt; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//$window.setMouseCursorVisible(true);
|
|
|
|
|
|
|
|
state(State::LOOTING); |
|
|
|
state(State::LOOTING); |
|
|
|
} |
|
|
|
} |
|
|
|
} break; |
|
|
|
} break; |
|
|
@ -208,11 +204,9 @@ namespace gui { |
|
|
|
$grab_source = std::any_cast<DinkyECS::Entity>(data); |
|
|
|
$grab_source = std::any_cast<DinkyECS::Entity>(data); |
|
|
|
|
|
|
|
|
|
|
|
if(auto world_entity = $status_ui.begin_grab(*$grab_source)) { |
|
|
|
if(auto world_entity = $status_ui.begin_grab(*$grab_source)) { |
|
|
|
//$window.setMouseCursorVisible(false);
|
|
|
|
|
|
|
|
$loot_ui.begin_drop(*world_entity); |
|
|
|
$loot_ui.begin_drop(*world_entity); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// BUG: need a cancel operation here
|
|
|
|
// BUG: need a cancel operation here
|
|
|
|
//$window.setMouseCursorVisible(true);
|
|
|
|
|
|
|
|
$grab_source = std::nullopt; |
|
|
|
$grab_source = std::nullopt; |
|
|
|
state(State::LOOTING); |
|
|
|
state(State::LOOTING); |
|
|
|
} |
|
|
|
} |
|
|
|