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

◆ RefreshQuickbarItemVariables()

void ScriptedWidgetEventHandler::RefreshQuickbarItemVariables ( InventoryItem item,
vector data )
inlineprivate

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

568 {
569 int index = Math.Round(data[0]);
570 Widget bck = GetItemBackground(index);
571 if ( bck )
572 {
573 Widget item_w = bck.FindAnyWidget("GridItem");
574 if ( item_w )
575 {
576 int color = m_Controller.GetQuickbarItemColor( this, item ); // !!!!!
577 item_w.SetColor( color );
578 }
579 }
580 RefreshItemVariables( item, data, true, false );
581 }
InventoryGridController m_Controller
Определения InventoryGrid.c:51
void RefreshItemVariables(InventoryItem item, vector data, bool show_quantity, bool show_temperature)
Определения InventoryGrid.c:584
Widget GetItemBackground(int index)
Определения InventoryGrid.c:347
WorkspaceWidget Widget
Defined in code.

Перекрестные ссылки GetItemBackground(), m_Controller, RefreshItemVariables() и Math::Round().

Используется в UpdateQuickbarItems().