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

◆ InitIconEx()

Icon Container::InitIconEx ( Icon icon,
EntityAI item,
int pos_x,
int pos_y,
bool refresh = true )
inlineprotected

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

555 {
556 #ifdef PLATFORM_CONSOLE
557 icon.SetSize( 1, 1 );
558 #ifdef PLATFORM_WINDOWS
559 pos_y = pos_y * 5 + pos_x;
560 #endif
561 icon.SetCargoPos( pos_y );
562 icon.SetPosY( pos_y );
563 icon.SetPosEx( refresh );
564 #else
565 int size_x, size_y;
566 GetGame().GetInventoryItemSize( InventoryItem.Cast( item ), size_x, size_y );
567
568 if ( item.GetInventory().GetFlipCargo() )
569 icon.SetSize( size_y, size_x );
570 else
571 icon.SetSize( size_x, size_y );
572
573 icon.SetPosX( pos_x );
574 icon.SetPosY( pos_y );
575 icon.SetPosEx( refresh );
576 #endif
577 icon.InitEx( item, refresh );
578 return icon;
579 }
proto void GetInventoryItemSize(InventoryItem item, out int width, out int height)
void SetPosX(int x)
Определения Icon.c:1646
void SetCargoPos(int x)
Определения Icon.c:1084
void SetPosEx(bool refresh=true)
Определения Icon.c:1686
void SetPosY(int y)
Определения Icon.c:1651
void SetSize(int x, int y)
Определения Icon.c:1067
void InitEx(EntityAI obj, bool refresh=true)
Определения Icon.c:1447
proto native CGame GetGame()

Перекрестные ссылки GetGame(), CGame::GetInventoryItemSize(), Icon::InitEx(), Icon::SetCargoPos(), Icon::SetPosEx(), Icon::SetPosX(), Icon::SetPosY() и Icon::SetSize().

Используется в AddedToCargoEx() и InitIcon().