DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ PrepareSlotsTooltip()

void ItemManager::PrepareSlotsTooltip ( string name,
string desc,
int x = 0,
int y = 0 )
inlineprotected

position is currentlycalculated from the owning 'm_TooltipSourceWidget' directly

См. определение в файле ItemManager.c строка 585

586 {
587 InspectMenuNew.UpdateSlotInfo( m_TooltipSlotWidget, name, desc );
588
589 HideTooltip();
590
591 if (name != "")
592 {
593 m_SlotInfoShown = true;
594 //CalculateTooltipSlotPosition(x,y);
595 m_TooltipSlotTimer = new Timer();
596 m_TooltipSlotTimer.Run( TOOLTIP_DELAY, this, "ShowTooltipSlot" );
597 }
598 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
const float TOOLTIP_DELAY
Определения ItemManager.c:40
ref Widget m_TooltipSlotWidget
Определения ItemManager.c:10
bool m_SlotInfoShown
Определения ItemManager.c:6
ref Timer m_TooltipSlotTimer
Определения ItemManager.c:18
void HideTooltip()
Определения ItemManager.c:398

Перекрестные ссылки HideTooltip(), m_SlotInfoShown, m_TooltipSlotTimer, m_TooltipSlotWidget, name, TOOLTIP_DELAY, x и y.

Используется в ScriptedWidgetEventHandler::PrepareOwnedSlotsTooltip().