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

◆ ResetItem()

void ScriptedWidgetEventHandler::ResetItem ( InventoryItem item)
inlineprotected

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

729 {
730 if (m_Items.Contains(item))
731 {
732 vector data = m_Items.Get(item);
733 int index = Math.Round(data[0]);
734 int width = Math.Round(data[1]);
735 int height = Math.Round(data[2]);
736 Widget bck = GetItemBackground(index);
737 Widget item_w = bck.FindAnyWidget("GridItem");
738 ResetItemWidget(item_w, width, height);
739 RefreshItemVariables( item, data, true, true );
740 }
741 }
ref TItemsMap m_Items
Определения InventoryGrid.c:50
void RefreshItemVariables(InventoryItem item, vector data, bool show_quantity, bool show_temperature)
Определения InventoryGrid.c:584
void ResetItemWidget(Widget item_w, int width, int height)
Определения InventoryGrid.c:719
Widget GetItemBackground(int index)
Определения InventoryGrid.c:347
WorkspaceWidget Widget
Defined in code.

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