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

◆ SetFocus()

void CargoContainerRow::SetFocus ( int column)
inlineprotected

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

75 {
76 m_NumberColumnFocused = column;
77
78 //GetMainWidget().FindAnyWidget( "Cursor" + column ).Show( true );
79
80 // Show selector
81 #ifdef PLATFORM_WINDOWS
82 #ifndef PLATFORM_CONSOLE
83 #ifndef SERVER_FOR_CONSOLE
84 #ifndef NO_GUI
85 CargoGrid grid = CargoGrid.Cast(m_Entity.GetInventory().GetCargo());
86 if(grid)
87 {
89 if( focused_item_new )
90 {
91 Icon icon = m_ParentContainer.GetIcon( focused_item_new );
92
93 if( icon )
94 {
95 icon.SetActive( true );
96 }
97 }
98 else
99 {
100 GetMainWidget().FindAnyWidget( "Cursor" + column ).Show( true );
101 }
102 }
103 #endif
104 #endif
105 #endif
106 #endif
107 }
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().