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

◆ SetFocus()

void CargoContainerRow::SetFocus ( int column)
inlineprotected

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

73 {
74 m_NumberColumnFocused = column;
75
76 //GetMainWidget().FindAnyWidget( "Cursor" + column ).Show( true );
77
78 // Show selector
79 #ifdef PLATFORM_WINDOWS
80 #ifndef PLATFORM_CONSOLE
81 #ifndef SERVER_FOR_CONSOLE
82 CargoGrid grid = CargoGrid.Cast(m_Entity.GetInventory().GetCargo());
83 if(grid)
84 {
86 if( focused_item_new )
87 {
88 Icon icon = m_ParentContainer.GetIcon( focused_item_new );
89
90 if( icon )
91 {
92 icon.SetActive( true );
93 }
94 }
95 else
96 {
97 GetMainWidget().FindAnyWidget( "Cursor" + column ).Show( true );
98 }
99 }
100 #endif
101 #endif
102 #endif
103 }
class LogManager EntityAI
int m_NumberRow
Определения CargoContainerRow.c:3
EntityAI m_Entity
Определения CargoContainerRow.c:8
int m_NumberColumnFocused
Определения CargoContainerRow.c:4
CargoContainer m_ParentContainer
Определения CargoContainerRow.c:10
proto native EntityAI FindEntityInCargoOn(int row, int col)
override void SetActive(bool active)
Определения Icon.c:103

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