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

◆ GetIconSize()

bool CargoContainerRow::GetIconSize ( int row,
int column,
out int width,
out int height )
inlineprotected

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

106 {
107 #ifdef PLATFORM_WINDOWS
108 #ifndef PLATFORM_CONSOLE
109 #ifndef SERVER_FOR_CONSOLE
110 CargoGrid grid = CargoGrid.Cast(m_Entity.GetInventory().GetCargo());
111 if(grid)
112 {
113 EntityAI focused_item_new = grid.FindEntityInCargoOn( row, column );
114 if( focused_item_new )
115 {
116 Icon icon = m_ParentContainer.GetIcon( focused_item_new );
117
118 if( icon )
119 {
120 width = icon.GetSizeX();
121 height = icon.GetSizeY();
122
123 return true;
124 }
125 }
126 }
127 #endif
128 #endif
129 #endif
130
131 return false;
132 }
class LogManager EntityAI
EntityAI m_Entity
Определения CargoContainerRow.c:8
CargoContainer m_ParentContainer
Определения CargoContainerRow.c:10
proto native EntityAI FindEntityInCargoOn(int row, int col)
int GetSizeY()
Определения Icon.c:1681
int GetSizeX()
Определения Icon.c:1676

Перекрестные ссылки CargoGrid::FindEntityInCargoOn(), Icon::GetSizeX(), Icon::GetSizeY(), m_Entity и m_ParentContainer.