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

◆ OnItemDrag()

override void InventoryGridController::OnItemDrag ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprotected

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

225 {
226 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
227 InventoryItem item = InventoryItem.Cast( player.GetQuickBarEntity(col) );
228 if (item)
229 {
230 m_DraggingIndex = col;
231 m_Grid.SetItemColor(item, InventoryGrid.ITEM_COLOR_DRAG);
232 }
233 }
PlayerBase GetPlayer()
Определения ModifierBase.c:51
int m_DraggingIndex
Определения InventoryQuickbar.c:6
InventoryGrid m_Grid
Определения InventoryQuickbar.c:5
proto native CGame GetGame()

Перекрестные ссылки GetGame(), GetPlayer(), m_DraggingIndex и m_Grid.