change the fontsize of fix the flooring

This commit is contained in:
Beu 2022-04-14 02:49:42 +02:00
parent 80f4e867b6
commit 7b10300713
10 changed files with 16 additions and 16 deletions

View File

@ -209,7 +209,7 @@ class ActionsMenu implements SidebarMenuEntryListener, CallbackListener, Maniali
$descriptionLabel->setPosition($playerPos->getX() - count($this->playerMenuItems) * $itemSize * 1.05 - 5, $playerPos->getY()); $descriptionLabel->setPosition($playerPos->getX() - count($this->playerMenuItems) * $itemSize * 1.05 - 5, $playerPos->getY());
$descriptionLabel->setAlign($descriptionLabel::RIGHT, $descriptionLabel::TOP); $descriptionLabel->setAlign($descriptionLabel::RIGHT, $descriptionLabel::TOP);
$descriptionLabel->setSize(40, 4); $descriptionLabel->setSize(40, 4);
$descriptionLabel->setTextSize(1.4); $descriptionLabel->setTextSize(1);
$descriptionLabel->setTextColor('fff'); $descriptionLabel->setTextColor('fff');
// Player Menu // 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->setPosition($adminPos->getX() - count($this->adminMenuItems) * $itemSize * 1.05 - 5, $adminPos->getY());
$descriptionLabel->setAlign($descriptionLabel::RIGHT, $descriptionLabel::TOP); $descriptionLabel->setAlign($descriptionLabel::RIGHT, $descriptionLabel::TOP);
$descriptionLabel->setSize(40, 4); $descriptionLabel->setSize(40, 4);
$descriptionLabel->setTextSize(1.4); $descriptionLabel->setTextSize(1);
$descriptionLabel->setTextColor('fff'); $descriptionLabel->setTextColor('fff');
// Admin Menu // Admin Menu

View File

@ -168,7 +168,7 @@ class AdminLists implements ManialinkPageAnswerListener, CallbackListener, Usage
$rightLabel = new Label_Text(); $rightLabel = new Label_Text();
$playerFrame->addChild($rightLabel); $playerFrame->addChild($rightLabel);
$rightLabel->setX($posX + 13.9); $rightLabel->setX($posX + 13.9);
$rightLabel->setTextSize(0.8); $rightLabel->setTextSize(0);
$rightLabel->setZ(10); $rightLabel->setZ(10);
$rightLabel->setText($this->maniaControl->getAuthenticationManager()->getAuthLevelAbbreviation($admin)); $rightLabel->setText($this->maniaControl->getAuthenticationManager()->getAuthLevelAbbreviation($admin));
$description = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($admin) . " " . $admin->nickname; $description = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($admin) . " " . $admin->nickname;

View File

@ -305,7 +305,7 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener
$awardLabel->setX($posX + 98.5); $awardLabel->setX($posX + 98.5);
$awardLabel->setHorizontalAlign($awardLabel::LEFT); $awardLabel->setHorizontalAlign($awardLabel::LEFT);
$awardLabel->setText($map->awards); $awardLabel->setText($map->awards);
$awardLabel->setTextSize(1.3); $awardLabel->setTextSize(1);
} }
//Map Karma //Map Karma

View File

@ -23,7 +23,7 @@ class LabelLine implements UsageInformationAble {
private $horizontalAlign = Label::LEFT; private $horizontalAlign = Label::LEFT;
private $style = Label_Text::STYLE_TextCardSmall; private $style = Label_Text::STYLE_TextCardSmall;
private $textSize = 1.5; private $textSize = 1;
private $textColor = 'FFF'; private $textColor = 'FFF';
private $posZ = 0; private $posZ = 0;
private $prefix = ''; private $prefix = '';

View File

@ -376,7 +376,7 @@ class ManialinkManager implements ManialinkPageAnswerListener, CallbackListener,
// define standard properties // define standard properties
$hAlign = (isset($properties['hAlign']) ? $properties['hAlign'] : Control::LEFT); $hAlign = (isset($properties['hAlign']) ? $properties['hAlign'] : Control::LEFT);
$style = (isset($properties['style']) ? $properties['style'] : Label_Text::STYLE_TextCardSmall); $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'); $textColor = (isset($properties['textColor']) ? $properties['textColor'] : 'FFF');
$posZ = (isset($properties['posZ']) ? $properties['posZ'] : 0); $posZ = (isset($properties['posZ']) ? $properties['posZ'] : 0);

View File

@ -129,7 +129,7 @@ class StyleManager implements UsageInformationAble {
$frame->addChild($label); $frame->addChild($label);
$label->setPosition(-$width / 2 + 5, 0); $label->setPosition(-$width / 2 + 5, 0);
$label->setHorizontalAlign($label::LEFT); $label->setHorizontalAlign($label::LEFT);
$label->setTextSize(1.3); $label->setTextSize(1);
$label->setText('Search: '); $label->setText('Search: ');
$entry = new Entry(); $entry = new Entry();
@ -245,7 +245,7 @@ class StyleManager implements UsageInformationAble {
$pageCountLabel = new Label_Text(); $pageCountLabel = new Label_Text();
$frame->addChild($pageCountLabel); $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) { if ($paging) {
$paging->addButtonControl($pagerNext)->addButtonControl($pagerPrev)->setLabel($pageCountLabel); $paging->addButtonControl($pagerNext)->addButtonControl($pagerPrev)->setLabel($pageCountLabel);

View File

@ -554,7 +554,7 @@ class PlayerActions implements EchoListener, CommunicationListener, UsageInforma
$label->setStyle($label::STYLE_TextCardMedium); $label->setStyle($label::STYLE_TextCardMedium);
$label->setText($line); $label->setText($line);
$label->setTextColor('ff0'); $label->setTextColor('ff0');
$label->setTextSize(1.3); $label->setTextSize(1);
$posY -= 4; $posY -= 4;
} }

View File

@ -97,7 +97,7 @@ class PlayerDetailed {
$mainLabel = new Label_Text(); $mainLabel = new Label_Text();
$frame->addChild($mainLabel); $frame->addChild($mainLabel);
$mainLabel->setPosition($posX, $posY); $mainLabel->setPosition($posX, $posY);
$mainLabel->setTextSize(1.2); $mainLabel->setTextSize(1);
$mainLabel->setHorizontalAlign($mainLabel::LEFT); $mainLabel->setHorizontalAlign($mainLabel::LEFT);
$mainLabel->setText('Login: '); $mainLabel->setText('Login: ');
$mainLabel->setWidth($colWidth); $mainLabel->setWidth($colWidth);
@ -150,7 +150,7 @@ class PlayerDetailed {
$frame->addChild($mainLabel); $frame->addChild($mainLabel);
$mainLabel->setPosition($posX + $colWidth, $posY); $mainLabel->setPosition($posX + $colWidth, $posY);
$mainLabel->setText($target->login); $mainLabel->setText($target->login);
$mainLabel->setTextSize(1.2); $mainLabel->setTextSize(1);
$mainLabel->setHorizontalAlign($mainLabel::LEFT); $mainLabel->setHorizontalAlign($mainLabel::LEFT);
$mainLabel->setWidth($colWidth); $mainLabel->setWidth($colWidth);
@ -266,7 +266,7 @@ class PlayerDetailed {
$label->setPosition($posX + $this->padding, $posY); $label->setPosition($posX + $this->padding, $posY);
$label->setText($statProperties->name); $label->setText($statProperties->name);
$label->setHorizontalAlign($label::LEFT); $label->setHorizontalAlign($label::LEFT);
$label->setTextSize(1.5); $label->setTextSize(1);
$label->setWidth($colWidth / 2 - $this->padding); $label->setWidth($colWidth / 2 - $this->padding);
$label = new Label_Text(); $label = new Label_Text();
@ -274,7 +274,7 @@ class PlayerDetailed {
$label->setPosition($posX + $colWidth - $this->padding, $posY); $label->setPosition($posX + $colWidth - $this->padding, $posY);
$label->setHorizontalAlign(Label_Text::RIGHT); $label->setHorizontalAlign(Label_Text::RIGHT);
$label->setText($value); $label->setText($value);
$label->setTextSize(1.5); $label->setTextSize(1);
$label->setWidth($colWidth / 2 - $this->padding); $label->setWidth($colWidth / 2 - $this->padding);
$posY -= 4; $posY -= 4;

View File

@ -300,7 +300,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener, Timer
$playerFrame->addChild($rightLabel); $playerFrame->addChild($rightLabel);
$rightLabel->setX($posX + 13.9); $rightLabel->setX($posX + 13.9);
$rightLabel->setText($this->maniaControl->getAuthenticationManager()->getAuthLevelAbbreviation($listPlayer->authLevel)); $rightLabel->setText($this->maniaControl->getAuthenticationManager()->getAuthLevelAbbreviation($listPlayer->authLevel));
$rightLabel->setTextSize(0.8); $rightLabel->setTextSize(0);
$rightLabel->setTextColor('fff'); $rightLabel->setTextColor('fff');
$description = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($listPlayer) . ' ' . $listPlayer->nickname; $description = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($listPlayer) . ' ' . $listPlayer->nickname;
@ -464,7 +464,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener, Timer
//Settings //Settings
$posX = $width / 2 + 0.2; $posX = $width / 2 + 0.2;
$width = 35; $width = 35;
$textSize = 1.5; $textSize = 1;
$textColor = 'fff'; $textColor = 'fff';
$quadWidth = $width - 7; $quadWidth = $width - 7;

View File

@ -322,7 +322,7 @@ class SimpleStatsList implements ManialinkPageAnswerListener, CallbackListener,
$pageCountLabel = new Label_Text(); $pageCountLabel = new Label_Text();
$frame->addChild($pageCountLabel); $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); $paging->addButtonControl($pagerNext)->addButtonControl($pagerPrev)->setLabel($pageCountLabel);