More improvements for #3430

Now that the list is wider, time and version can fit with a smaller place, leaving more for the rest.
This commit is contained in:
Alayan-stk-2 2018-09-15 03:32:51 +02:00 committed by GitHub
parent 4c8d1b6b67
commit 505a67a372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ using namespace irr::core;
// -----------------------------------------------------------------------------
GhostReplayInfoDialog::GhostReplayInfoDialog(unsigned int replay_id,
uint64_t compare_replay_uid, bool compare_ghost)
: ModalDialog(0.9f,0.75f), m_replay_id(replay_id)
: ModalDialog(0.95f,0.75f), m_replay_id(replay_id)
{
m_self_destroy = false;
m_record_race = false;
@ -147,13 +147,13 @@ void GhostReplayInfoDialog::updateReplayDisplayedInfo()
row.push_back(GUIEngine::ListWidget::ListCell
(_("Laps"), -1, 3, true));
row.push_back(GUIEngine::ListWidget::ListCell
(_("Time"), -1, 4, true));
(_("Time"), -1, 3, true));
row.push_back(GUIEngine::ListWidget::ListCell
(_("Kart"), -1, 1, true));
row.push_back(GUIEngine::ListWidget::ListCell
(_("User"), -1, 5, true));
row.push_back(GUIEngine::ListWidget::ListCell
(_("Version"), -1, 3, true));
(_("Version"), -1, 2, true));
m_replay_info_widget->addItem(StringUtils::toString(0), row);
@ -203,13 +203,13 @@ void GhostReplayInfoDialog::updateReplayDisplayedInfo()
row.push_back(GUIEngine::ListWidget::ListCell
(StringUtils::toWString(rd.m_laps), -1, 3, true));
row.push_back(GUIEngine::ListWidget::ListCell
(StringUtils::toWString(rd.m_min_time) + L"s", -1, 4, true));
(StringUtils::toWString(rd.m_min_time) + L"s", -1, 3, true));
row.push_back(GUIEngine::ListWidget::ListCell
("", icon, 1, true));
row.push_back(GUIEngine::ListWidget::ListCell
(rd.m_user_name.empty() ? " " : rd.m_user_name, -1, 5, true));
row.push_back(GUIEngine::ListWidget::ListCell
(rd.m_stk_version.empty() ? " " : rd.m_stk_version, -1, 3, true));
(rd.m_stk_version.empty() ? " " : rd.m_stk_version, -1, 2, true));
m_replay_info_widget->addItem(StringUtils::toString(i), row);
} // for num_replays_to_list