From d817363076c274ce3e2fde281aff36d40c93e421 Mon Sep 17 00:00:00 2001 From: jonthekiller Date: Wed, 22 Jan 2020 10:28:20 +0100 Subject: [PATCH] Fix display for rank > 9999 (#227) --- plugins/MCTeam/Common/RecordWidget.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/MCTeam/Common/RecordWidget.php b/plugins/MCTeam/Common/RecordWidget.php index 202152ee..b331360d 100644 --- a/plugins/MCTeam/Common/RecordWidget.php +++ b/plugins/MCTeam/Common/RecordWidget.php @@ -14,7 +14,7 @@ use ManiaControl\Utils\Formatter; * ManiaControl Local Records Plugin * * @author ManiaControl Team - * @copyright 2014-2019 ManiaControl Team + * @copyright 2014-2018 ManiaControl Team * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 */ class RecordWidget { @@ -49,7 +49,12 @@ class RecordWidget { if ($record->rank > 999) { $largeNumberDiff = 0.03; } - + if ($record->rank > 9999) { + $largeNumberDiff = 0.06; + } + if ($record->rank > 99999) { + $largeNumberDiff = 0.09; + } $rankLabel = new Label(); $recordFrame->addChild($rankLabel); $rankLabel->setHorizontalAlign($rankLabel::LEFT);