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

◆ Insert()

override void PlayerContainer::Insert ( LayoutHolder container,
int pos = -1,
bool immedUpdate = true )
inlineprotected

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

318 {
319 ClosableContainer c_cont = ClosableContainer.Cast( container );
320 if (c_cont && m_Body.Count() > 1)
321 {
322 ClosableContainer prev = ClosableContainer.Cast(m_Body.Get( 1 ));
323 int index = 1;
324 int curr_sort = c_cont.GetRootWidget().GetSort();
325 while ( prev )
326 {
327 int prev_sort = prev.GetRootWidget().GetSort();
328 if ( prev_sort > curr_sort )
329 break;
330
331 if ( ++index < m_Body.Count() )
332 prev = ClosableContainer.Cast( m_Body.Get( index ) );
333 else
334 break;
335 }
336
337 m_Body.InsertAt( container, index );
338 }
339 else
340 {
341 m_Body.Insert( container );
342 }
343
344 if ( immedUpdate )
345 RecomputeOpenedContainers();
346 }
void ClosableContainer(LayoutHolder parent, int sort=-1)
Определения ClosableContainer.c:6

Перекрестные ссылки Container::ClosableContainer().