Fix for inspecting entities in the stripping window (#33644)

Handle it
This commit is contained in:
Plykiya
2024-11-30 08:23:26 -08:00
committed by GitHub
parent 3d984603f1
commit fb76cd952e

View File

@@ -191,9 +191,15 @@ namespace Content.Client.Inventory
return; return;
if (ev.Function == ContentKeyFunctions.ExamineEntity) if (ev.Function == ContentKeyFunctions.ExamineEntity)
{
_examine.DoExamine(slot.Entity.Value); _examine.DoExamine(slot.Entity.Value);
ev.Handle();
}
else if (ev.Function == EngineKeyFunctions.UseSecondary) else if (ev.Function == EngineKeyFunctions.UseSecondary)
{
_ui.GetUIController<VerbMenuUIController>().OpenVerbMenu(slot.Entity.Value); _ui.GetUIController<VerbMenuUIController>().OpenVerbMenu(slot.Entity.Value);
ev.Handle();
}
} }
private void AddInventoryButton(EntityUid invUid, string slotId, InventoryComponent inv) private void AddInventoryButton(EntityUid invUid, string slotId, InventoryComponent inv)