Quick start to making it possible to use healing items, or any item really. Going with a style that it has to be on your toolbar to use it, and the toolbelt looks in your inventory to see ifyou have healing items.
This commit is contained in:
parent
b9656013b0
commit
0d889cd0ff
4 changed files with 22 additions and 3 deletions
|
@ -503,6 +503,11 @@ namespace gui {
|
|||
case eGUI::STAIRS_DOWN:
|
||||
event(Event::STAIRS_DOWN);
|
||||
break;
|
||||
case eGUI::USE_ITEM: {
|
||||
auto what = std::any_cast<DinkyECS::Entity>(data);
|
||||
dbc::log(fmt::format("USE ITEM: {}", what));
|
||||
break;
|
||||
}
|
||||
case eGUI::DEATH: {
|
||||
$status_ui.update();
|
||||
if(entity != player.entity) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue