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

◆ Remove()

void LayoutHolder::Remove ( LayoutHolder container)
inlineprotected

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

1213 {
1214 if( m_Body )
1215 {
1216 int index = m_Body.Find( container );
1217 if( index > -1 )
1218 {
1219 index = m_OpenedContainers.Find( container );
1220 if (index > -1)
1221 {
1222 if (index <= m_ActiveIndex)
1223 {
1224 if (GetFocusedContainer() == container)
1225 {
1226 SetPreviousActive( true );
1227 }
1228 else
1229 {
1230 m_ActiveIndex--;
1231 }
1232 }
1233 m_OpenedContainers.RemoveItem( container );
1234 }
1235 m_Body.RemoveItem( container );
1236 }
1237 }
1238
1239 Refresh();
1240 }
ref array< ref LayoutHolder > m_Body
Определения Container.c:3
ref array< LayoutHolder > m_OpenedContainers
Определения Container.c:4
int m_ActiveIndex
Определения Container.c:5
override void Refresh()
Определения Container.c:1247
void SetPreviousActive(bool force=false)
Определения Container.c:988
Container GetFocusedContainer()
Определения Container.c:48

Перекрестные ссылки GetFocusedContainer(), m_ActiveIndex, m_Body, m_OpenedContainers, Container::Refresh() и Container::SetPreviousActive().