diff --git a/src/xrGame/ui/UIActorMenuInventory.cpp b/src/xrGame/ui/UIActorMenuInventory.cpp index 28087736467..127d93a5428 100644 --- a/src/xrGame/ui/UIActorMenuInventory.cpp +++ b/src/xrGame/ui/UIActorMenuInventory.cpp @@ -926,7 +926,12 @@ void CUIActorMenu::PropertiesBoxForSlots(PIItem item, bool& b_show) if (!pOutfit) { if (!pHelmet) - m_UIPropertiesBox->AddItem("st_move_to_bag", NULL, INVENTORY_TO_BAG_ACTION); + { + if (m_currMenuMode == mmDeadBodySearch) + m_UIPropertiesBox->AddItem("st_move_to_bag", nullptr, INVENTORY_TO_BAG_ACTION); + else + m_UIPropertiesBox->AddItem("st_unequip", nullptr, INVENTORY_TO_BAG_ACTION); + } else m_UIPropertiesBox->AddItem("st_undress_helmet", NULL, INVENTORY_TO_BAG_ACTION); } diff --git a/src/xrGame/ui/UIActorMenu_script.cpp b/src/xrGame/ui/UIActorMenu_script.cpp index b52a7a77a04..ce8d820f67f 100644 --- a/src/xrGame/ui/UIActorMenu_script.cpp +++ b/src/xrGame/ui/UIActorMenu_script.cpp @@ -12,6 +12,7 @@ #include "UICellItem.h" #include "ai_space.h" #include "xrScriptEngine/script_engine.hpp" +#include "eatable_item.h" using namespace luabind; @@ -27,6 +28,15 @@ void CUIActorMenu::TryRepairItem(CUIWindow* w, void* d) return; } LPCSTR item_name = item->m_section_id.c_str(); + + CEatableItem* EItm = smart_cast(item); + if (EItm) + { + bool allow_repair = !!READ_IF_EXISTS(pSettings, r_bool, item_name, "allow_repair", false); + if (!allow_repair) + return; + } + LPCSTR partner = m_pPartnerInvOwner->CharacterInfo().Profile().c_str(); luabind::functor funct; diff --git a/src/xrGame/ui/UIDragDropListEx.cpp b/src/xrGame/ui/UIDragDropListEx.cpp index d2a94c1335e..88bc08f5b4c 100644 --- a/src/xrGame/ui/UIDragDropListEx.cpp +++ b/src/xrGame/ui/UIDragDropListEx.cpp @@ -871,7 +871,7 @@ void CUICellContainer::Draw() //Alundaio: Highlight equipped items PIItem iitem = static_cast(ui_cell.m_item->m_pData); if (iitem && iitem->m_pInventory && iitem->m_pInventory->ItemFromSlot(iitem->BaseSlot()) == iitem) - select_mode = 3; + select_mode = 2; //-Alundaio } }