Inventory system basically works now but is in a alpha hack stage. Time to refactor.
This commit is contained in:
parent
b7f49aa719
commit
e0e7a1027c
11 changed files with 92 additions and 33 deletions
11
gui_fsm.cpp
11
gui_fsm.cpp
|
@ -355,10 +355,13 @@ namespace gui {
|
|||
$main_ui.dead_entity(entity);
|
||||
}
|
||||
} break;
|
||||
case eGUI::NOOP:
|
||||
$status_ui.log(fmt::format("NOOP EVENT! {},{}", evt, entity));
|
||||
$status_ui.update();
|
||||
break;
|
||||
case eGUI::NOOP: {
|
||||
if(data.type() == typeid(std::string)) {
|
||||
auto name = std::any_cast<std::string>(data);
|
||||
$status_ui.log(fmt::format("NOOP EVENT! {},{} name={}", evt, entity, name));
|
||||
}
|
||||
$status_ui.update();
|
||||
} break;
|
||||
default:
|
||||
$status_ui.log(fmt::format("INVALID EVENT! {},{}", evt, entity));
|
||||
$status_ui.update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue