From 7b10300713ba4d338a49570941ec4420f171525a Mon Sep 17 00:00:00 2001 From: beu Date: Thu, 14 Apr 2022 02:49:42 +0200 Subject: [PATCH] change the fontsize of fix the flooring --- core/Admin/ActionsMenu.php | 4 ++-- core/Admin/AdminLists.php | 2 +- core/ManiaExchange/ManiaExchangeList.php | 2 +- core/Manialinks/LabelLine.php | 2 +- core/Manialinks/ManialinkManager.php | 2 +- core/Manialinks/StyleManager.php | 4 ++-- core/Players/PlayerActions.php | 2 +- core/Players/PlayerDetailed.php | 8 ++++---- core/Players/PlayerList.php | 4 ++-- core/Statistics/SimpleStatsList.php | 2 +- 10 files changed, 16 insertions(+), 16 deletions(-) diff --git a/core/Admin/ActionsMenu.php b/core/Admin/ActionsMenu.php index 5e984f4e..beac8f56 100644 --- a/core/Admin/ActionsMenu.php +++ b/core/Admin/ActionsMenu.php @@ -209,7 +209,7 @@ class ActionsMenu implements SidebarMenuEntryListener, CallbackListener, Maniali $descriptionLabel->setPosition($playerPos->getX() - count($this->playerMenuItems) * $itemSize * 1.05 - 5, $playerPos->getY()); $descriptionLabel->setAlign($descriptionLabel::RIGHT, $descriptionLabel::TOP); $descriptionLabel->setSize(40, 4); - $descriptionLabel->setTextSize(1.4); + $descriptionLabel->setTextSize(1); $descriptionLabel->setTextColor('fff'); // Player Menu @@ -285,7 +285,7 @@ class ActionsMenu implements SidebarMenuEntryListener, CallbackListener, Maniali $descriptionLabel->setPosition($adminPos->getX() - count($this->adminMenuItems) * $itemSize * 1.05 - 5, $adminPos->getY()); $descriptionLabel->setAlign($descriptionLabel::RIGHT, $descriptionLabel::TOP); $descriptionLabel->setSize(40, 4); - $descriptionLabel->setTextSize(1.4); + $descriptionLabel->setTextSize(1); $descriptionLabel->setTextColor('fff'); // Admin Menu diff --git a/core/Admin/AdminLists.php b/core/Admin/AdminLists.php index 9cf58f37..818cc759 100644 --- a/core/Admin/AdminLists.php +++ b/core/Admin/AdminLists.php @@ -168,7 +168,7 @@ class AdminLists implements ManialinkPageAnswerListener, CallbackListener, Usage $rightLabel = new Label_Text(); $playerFrame->addChild($rightLabel); $rightLabel->setX($posX + 13.9); - $rightLabel->setTextSize(0.8); + $rightLabel->setTextSize(0); $rightLabel->setZ(10); $rightLabel->setText($this->maniaControl->getAuthenticationManager()->getAuthLevelAbbreviation($admin)); $description = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($admin) . " " . $admin->nickname; diff --git a/core/ManiaExchange/ManiaExchangeList.php b/core/ManiaExchange/ManiaExchangeList.php index 2a322831..b293bf9e 100644 --- a/core/ManiaExchange/ManiaExchangeList.php +++ b/core/ManiaExchange/ManiaExchangeList.php @@ -305,7 +305,7 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener $awardLabel->setX($posX + 98.5); $awardLabel->setHorizontalAlign($awardLabel::LEFT); $awardLabel->setText($map->awards); - $awardLabel->setTextSize(1.3); + $awardLabel->setTextSize(1); } //Map Karma diff --git a/core/Manialinks/LabelLine.php b/core/Manialinks/LabelLine.php index d65db25f..1517866c 100644 --- a/core/Manialinks/LabelLine.php +++ b/core/Manialinks/LabelLine.php @@ -23,7 +23,7 @@ class LabelLine implements UsageInformationAble { private $horizontalAlign = Label::LEFT; private $style = Label_Text::STYLE_TextCardSmall; - private $textSize = 1.5; + private $textSize = 1; private $textColor = 'FFF'; private $posZ = 0; private $prefix = ''; diff --git a/core/Manialinks/ManialinkManager.php b/core/Manialinks/ManialinkManager.php index a8d61d49..0a9043da 100644 --- a/core/Manialinks/ManialinkManager.php +++ b/core/Manialinks/ManialinkManager.php @@ -376,7 +376,7 @@ class ManialinkManager implements ManialinkPageAnswerListener, CallbackListener, // define standard properties $hAlign = (isset($properties['hAlign']) ? $properties['hAlign'] : Control::LEFT); $style = (isset($properties['style']) ? $properties['style'] : Label_Text::STYLE_TextCardSmall); - $textSize = (isset($properties['textSize']) ? $properties['textSize'] : 1.5); + $textSize = (isset($properties['textSize']) ? $properties['textSize'] : 1); $textColor = (isset($properties['textColor']) ? $properties['textColor'] : 'FFF'); $posZ = (isset($properties['posZ']) ? $properties['posZ'] : 0); diff --git a/core/Manialinks/StyleManager.php b/core/Manialinks/StyleManager.php index 9112185d..4a63e612 100644 --- a/core/Manialinks/StyleManager.php +++ b/core/Manialinks/StyleManager.php @@ -129,7 +129,7 @@ class StyleManager implements UsageInformationAble { $frame->addChild($label); $label->setPosition(-$width / 2 + 5, 0); $label->setHorizontalAlign($label::LEFT); - $label->setTextSize(1.3); + $label->setTextSize(1); $label->setText('Search: '); $entry = new Entry(); @@ -245,7 +245,7 @@ class StyleManager implements UsageInformationAble { $pageCountLabel = new Label_Text(); $frame->addChild($pageCountLabel); - $pageCountLabel->setHorizontalAlign($pageCountLabel::RIGHT)->setPosition($width * 0.40, $height * -0.44, 1)->setStyle($pageCountLabel::STYLE_TextTitle1)->setTextSize(1.3); + $pageCountLabel->setHorizontalAlign($pageCountLabel::RIGHT)->setPosition($width * 0.40, $height * -0.44, 1)->setStyle($pageCountLabel::STYLE_TextTitle1)->setTextSize(1); if ($paging) { $paging->addButtonControl($pagerNext)->addButtonControl($pagerPrev)->setLabel($pageCountLabel); diff --git a/core/Players/PlayerActions.php b/core/Players/PlayerActions.php index c11cc2a5..b1a75683 100644 --- a/core/Players/PlayerActions.php +++ b/core/Players/PlayerActions.php @@ -554,7 +554,7 @@ class PlayerActions implements EchoListener, CommunicationListener, UsageInforma $label->setStyle($label::STYLE_TextCardMedium); $label->setText($line); $label->setTextColor('ff0'); - $label->setTextSize(1.3); + $label->setTextSize(1); $posY -= 4; } diff --git a/core/Players/PlayerDetailed.php b/core/Players/PlayerDetailed.php index bf50bd06..9a4b1938 100644 --- a/core/Players/PlayerDetailed.php +++ b/core/Players/PlayerDetailed.php @@ -97,7 +97,7 @@ class PlayerDetailed { $mainLabel = new Label_Text(); $frame->addChild($mainLabel); $mainLabel->setPosition($posX, $posY); - $mainLabel->setTextSize(1.2); + $mainLabel->setTextSize(1); $mainLabel->setHorizontalAlign($mainLabel::LEFT); $mainLabel->setText('Login: '); $mainLabel->setWidth($colWidth); @@ -150,7 +150,7 @@ class PlayerDetailed { $frame->addChild($mainLabel); $mainLabel->setPosition($posX + $colWidth, $posY); $mainLabel->setText($target->login); - $mainLabel->setTextSize(1.2); + $mainLabel->setTextSize(1); $mainLabel->setHorizontalAlign($mainLabel::LEFT); $mainLabel->setWidth($colWidth); @@ -266,7 +266,7 @@ class PlayerDetailed { $label->setPosition($posX + $this->padding, $posY); $label->setText($statProperties->name); $label->setHorizontalAlign($label::LEFT); - $label->setTextSize(1.5); + $label->setTextSize(1); $label->setWidth($colWidth / 2 - $this->padding); $label = new Label_Text(); @@ -274,7 +274,7 @@ class PlayerDetailed { $label->setPosition($posX + $colWidth - $this->padding, $posY); $label->setHorizontalAlign(Label_Text::RIGHT); $label->setText($value); - $label->setTextSize(1.5); + $label->setTextSize(1); $label->setWidth($colWidth / 2 - $this->padding); $posY -= 4; diff --git a/core/Players/PlayerList.php b/core/Players/PlayerList.php index 62dacdae..34aa9f5d 100644 --- a/core/Players/PlayerList.php +++ b/core/Players/PlayerList.php @@ -300,7 +300,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener, Timer $playerFrame->addChild($rightLabel); $rightLabel->setX($posX + 13.9); $rightLabel->setText($this->maniaControl->getAuthenticationManager()->getAuthLevelAbbreviation($listPlayer->authLevel)); - $rightLabel->setTextSize(0.8); + $rightLabel->setTextSize(0); $rightLabel->setTextColor('fff'); $description = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($listPlayer) . ' ' . $listPlayer->nickname; @@ -464,7 +464,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener, Timer //Settings $posX = $width / 2 + 0.2; $width = 35; - $textSize = 1.5; + $textSize = 1; $textColor = 'fff'; $quadWidth = $width - 7; diff --git a/core/Statistics/SimpleStatsList.php b/core/Statistics/SimpleStatsList.php index e11d7bde..65d38b8a 100644 --- a/core/Statistics/SimpleStatsList.php +++ b/core/Statistics/SimpleStatsList.php @@ -322,7 +322,7 @@ class SimpleStatsList implements ManialinkPageAnswerListener, CallbackListener, $pageCountLabel = new Label_Text(); $frame->addChild($pageCountLabel); - $pageCountLabel->setHorizontalAlign($pageCountLabel::RIGHT)->setPosition($width * 0.40, $height * -0.44, 1)->setStyle($pageCountLabel::STYLE_TextTitle1)->setTextSize(1.3); + $pageCountLabel->setHorizontalAlign($pageCountLabel::RIGHT)->setPosition($width * 0.40, $height * -0.44, 1)->setStyle($pageCountLabel::STYLE_TextTitle1)->setTextSize(1); $paging->addButtonControl($pagerNext)->addButtonControl($pagerPrev)->setLabel($pageCountLabel);