Skip to content

Commit

Permalink
Add highlighting for equipped items
Browse files Browse the repository at this point in the history
  • Loading branch information
St4lker0k765 authored and Drombeys committed Dec 10, 2024
1 parent e9a61d8 commit ff5426f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/xrGame/ui/UIDragDropListEx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,18 @@ void CUICellContainer::Draw()
{
select_mode = 3;
}
else
{
//Alundaio: Highlight equipped items
PIItem iitem = (PIItem)ui_cell.m_item->m_pData;
if (iitem)
{
u16 slot = iitem->BaseSlot();
if (iitem->m_pInventory && iitem->m_pInventory->ItemFromSlot(slot) == iitem)
select_mode = 3;
}
//-Alundaio:
}
}

Fvector2 tp;
Expand Down

0 comments on commit ff5426f

Please sign in to comment.