Files
FenodyreeAvandGitHub ecc8f4db66 Forces statpanel to update immediately on item move (#22946)
The statpanel (alt-click pickup menu) now updates whenever an item in it
is moved.

The statpanel (alt-click pickup menu) previously only updates on the
subsystem firing, every 2 seconds.
This lets you interact with an object after it's already in the contents
of another object.

Eg. Pick up a bullet, load it into a magazine, pick up that same bullet
from the statpanel, load it again.

This is the source of nearly every inventory bug I've encountered.
(vanishing armor attachments, bullet pile duplication, double-click
triggering grenades, modlaser components being in two guns at the same
time).

It also just feels bad and makes the menu much less usable. (Have I
picked up that item? Which one of these 6 identical icons did I click on
last? Better wait 2 seconds for it to update).


This does NOT cause the panel to update when a new item is added, as
that causes an Icon/Image refresh, which is the expensive part of the
proc. (At least I hope it doesn't)


https://github.com/user-attachments/assets/f396d4bb-d9be-407a-ad66-0cbf8cd4490b
2026-08-08 20:47:58 +00:00
..
2024-01-06 17:03:57 +01:00
2024-01-06 17:03:57 +01:00
2025-12-23 23:13:42 +00:00
2024-01-06 17:03:57 +01:00