Page MenuHomeFeedback Tracker

Inventory paginated selection incorrect
Closed, ResolvedPublic

Description

When entering nested storage that is paginated the vicinity storage top left item is selected instead of the storage the user has opened. This of course only applies to navigation via keyboard only or via gamepad. This makes managing the inventory very annoying once you have many low-weight items. This only happens when the user is on the second page or further. Maybe the script attempts to navigate him to the first page, but that is not shown so it falls back to the vicinity?

The desired outcome for switching pages, clicking A to "open/select nested storage" would be this:

But right now it behaves like this:

Note: I used some modded scripts to disable visual stacking of items etc, but none of this has an impact on that behavior. This happens in vanilla as well.

Edit:
One workaround or possible fix even could be this:

cs
modded class SCR_InventoryMenuUI
{
	override bool FocusOnSlotInStorage(SCR_InventoryStorageBaseUI storage, int id = 0, bool focus = true)
	{
		array<SCR_InventorySlotUI> slots = storage.GetUISlots();
		int currentPage = storage.GetLastShownPage();

		if (slots && id < slots.Count() && slots.Get(id).GetPage() != currentPage)
		{
			for (int nSlot = 0, slotCount = slots.Count(); nSlot < slotCount; nSlot++)
			{
				if (slots.Get(nSlot).GetPage() == currentPage)
				{
					PrintFormat("Slot show override from %1 to %2 to show on page %3", id, nSlot, currentPage);
					id = nSlot;
					break;
				}
			}
		}

		return super.FocusOnSlotInStorage(storage, id, focus);
	}
}

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor created this task.Sep 12 2022, 3:13 PM
Arkensor updated the task description. (Show Details)Sep 12 2022, 3:46 PM
Arkensor updated the task description. (Show Details)Sep 12 2022, 4:05 PM
mbamg added a subscriber: mbamg.Sep 12 2022, 4:23 PM
Geez changed the task status from New to Awaiting internal Testing.Sep 14 2022, 3:53 PM
Geez changed the task status from Awaiting internal Testing to Confirmed Internally.Oct 6 2022, 2:09 PM
Geez closed this task as Resolved.Feb 15 2024, 2:48 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Should be resolved by now :)