fix(ui): assess retained items on right click
Port UIElement_ItemList's physical-item right-click branch through the shared retained list. Select and appraise backpack, loot, paperdoll, and shortcut items through their canonical owners, while preventing RMB movement from lifting items or issuing appraisal requests. Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
parent
5ad32d5753
commit
2dd5cb80d2
17 changed files with 264 additions and 5 deletions
|
|
@ -73,6 +73,15 @@ public sealed class UiItemList : UiElement
|
|||
/// </summary>
|
||||
public Action<object, int, int>? CatalogDropped { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Appraisal command supplied by the owning panel controller for physical
|
||||
/// item cells. Retail <c>UIElement_ItemList::ListenToElementMessage
|
||||
/// @ 0x004E4D50</c> handles its right-click branch at <c>0x004E4ECA</c>:
|
||||
/// select the occupied UIItem's itemID, then call
|
||||
/// <c>ClientUISystem::ExamineObject</c>.
|
||||
/// </summary>
|
||||
public Action<uint>? ExamineItemRequested { get; set; }
|
||||
|
||||
private uint _cellEmptySprite;
|
||||
/// <summary>Empty-slot sprite for THIS list's cells, resolved from the dat cell template
|
||||
/// (retail attribute 0x1000000e -> catalog 0x21000037 prototype's ItemSlot_Empty; see
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue