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

◆ Remove()

void LayoutHolder::Remove ( LayoutHolder container)
inlineprotected

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

1217 {
1218 if( m_Body )
1219 {
1220 int index = m_Body.Find( container );
1221 if( index > -1 )
1222 {
1223 index = m_OpenedContainers.Find( container );
1224 if (index > -1)
1225 {
1226 if (index <= m_ActiveIndex)
1227 {
1228 if (GetFocusedContainer() == container)
1229 {
1230 SetPreviousActive( true );
1231 }
1232 else
1233 {
1234 m_ActiveIndex--;
1235 }
1236 }
1237 m_OpenedContainers.RemoveItem( container );
1238 }
1239 m_Body.RemoveItem( container );
1240 }
1241 }
1242
1243 Refresh();
1244 }
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:1251
void SetPreviousActive(bool force=false)
Определения Container.c:992
Container GetFocusedContainer()
Определения Container.c:48

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