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

◆ GetIconSize()

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

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

110 {
111 #ifdef PLATFORM_WINDOWS
112 #ifndef PLATFORM_CONSOLE
113 #ifndef SERVER_FOR_CONSOLE
114 #ifndef NO_GUI
115 CargoGrid grid = CargoGrid.Cast(m_Entity.GetInventory().GetCargo());
116 if(grid)
117 {
118 EntityAI focused_item_new = grid.FindEntityInCargoOn( row, column );
119 if( focused_item_new )
120 {
121 Icon icon = m_ParentContainer.GetIcon( focused_item_new );
122
123 if( icon )
124 {
125 width = icon.GetSizeX();
126 height = icon.GetSizeY();
127
128 return true;
129 }
130 }
131 }
132 #endif
133 #endif
134 #endif
135 #endif
136
137 return false;
138 }
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:1680
int GetSizeX()
Определения Icon.c:1675

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