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:
Zed A. Shaw 2025-08-06 13:16:22 -04:00
parent b9656013b0
commit 0d889cd0ff
4 changed files with 22 additions and 3 deletions

View file

@ -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) {