См. определение в файле CargoContainer.c строка 481
482 {
483 int i;
486 {
488 if (rows > maxRows)
489 rows = maxRows;
490 }
491 else
492 {
494 Error(
string.Format(
"%1::UpdateRowVisibility - CargoBase is NULL for entity %2 at position %3",
ToString(),
m_Entity.GetType(),
m_Entity.GetPosition()));
495 }
496
497 int diff = rows -
m_Rows.Count();
498 if(diff < 0)
499 {
500 for(i =
m_Rows.Count() - 1; i >= rows; i--)
501 {
503 }
504 }
505 else if(diff > 0)
506 {
508 for(i =
m_Rows.Count(); i < rows; i++)
509 {
510 ref CargoContainerRow row = new CargoContainerRow(this);
511
512 row.SetNumber(i);
514 row.GetRootWidget().SetSort(i);
516 }
518 }
519
521 #ifndef PLATFORM_CONSOLE
523 #endif
524 }
ref SizeToChild m_Resizer2
int GetMaxCargoCapacity()
ref SizeToChild m_Resizer1
const int ROWS_NUMBER_XBOX
ref array< ref CargoContainerRow > m_Rows
void Error(string err)
Messagebox with error message.
Перекрестные ссылки Math::Ceil(), Error(), GetMaxCargoCapacity(), m_Cargo, m_CargoContainer, m_Entity, m_ItemsContainer, m_Resizer1, m_Resizer2, m_Rows, Math::Max(), ROWS_NUMBER_XBOX и ToString().
Используется в RefreshImpl().