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

◆ UpdateSelectionIcons()

override void LeftArea::UpdateSelectionIcons ( )
inlineprotected

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

76 {
77 #ifdef PLATFORM_CONSOLE
78 ScrollToActiveContainer();
79 #endif
80 m_UpIcon.Show( m_IsActive );
81 m_DownIcon.Show( m_IsActive );
82 if( m_IsActive )
83 {
84 float x, y;
85 m_UpIcon.GetScreenSize( x, y );
86
87 float top_y = GetCurrentContainerTopY();
88 m_UpIcon.SetPos( 0, Math.Clamp( top_y, 0, 99999 ) );
89
90 #ifndef PLATFORM_CONSOLE
91 float x2, y2;
92 m_DownIcon.GetScreenSize( x2, y2 );
93 float bottom_y = GetCurrentContainerBottomY() - y2;
94
95 float diff = bottom_y - ( top_y + y );
96 if( diff < 0 )
97 {
98 top_y += diff / 2;
99 bottom_y -= diff / 2;
100 }
101 m_DownIcon.SetPos( 0, bottom_y );
102 #endif
103 }
104 }
Icon x
Icon y
bool m_IsActive
Определения ModifierBase.c:19
float GetCurrentContainerTopY()
Определения LeftArea.c:106
Widget m_UpIcon
Определения LeftArea.c:3
float GetCurrentContainerBottomY()
Определения LeftArea.c:116
Widget m_DownIcon
Определения LeftArea.c:4

Перекрестные ссылки Math::Clamp(), GetCurrentContainerBottomY(), GetCurrentContainerTopY(), m_DownIcon, m_IsActive, m_UpIcon, x и y.

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