From 92e00737b5002654efcaf5c9e1526d1c086d677b Mon Sep 17 00:00:00 2001 From: Alexander Nell Date: Sat, 29 Feb 2020 13:43:16 +0100 Subject: [PATCH] Adjust MX icon to be relative to bottom border --- plugins/MCTeam/WidgetPlugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/MCTeam/WidgetPlugin.php b/plugins/MCTeam/WidgetPlugin.php index b4e0ebe2..3647ca65 100644 --- a/plugins/MCTeam/WidgetPlugin.php +++ b/plugins/MCTeam/WidgetPlugin.php @@ -38,7 +38,7 @@ class WidgetPlugin implements CallbackListener, TimerListener, Plugin { const PLUGIN_ID = 1; const PLUGIN_VERSION = 0.11; const PLUGIN_NAME = 'WidgetPlugin'; - const PLUGIN_AUTHOR = 'kremsy, axelalex2'; + const PLUGIN_AUTHOR = 'MCTeam'; // MapWidget Properties const MLID_MAP_WIDGET = 'WidgetPlugin.MapWidget'; @@ -293,7 +293,7 @@ class WidgetPlugin implements CallbackListener, TimerListener, Plugin { $quad = new Quad_Icons128x32_1(); $frame->addChild($quad); - $quad->setPosition(-$width/2 + 3, -3, -0.5); + $quad->setPosition(-$width/2 + 3, -$height/2 + 3, -0.5); $quad->setSize(3.5, 3.5); $quad->setSubStyle($quad::SUBSTYLE_RT_TimeAttack); @@ -312,7 +312,7 @@ class WidgetPlugin implements CallbackListener, TimerListener, Plugin { $frame->addChild($quad); $quad->setImageFocusUrl($this->maniaControl->getManialinkManager()->getIconManager()->getIcon(IconManager::MX_ICON_MOVER)); $quad->setImageUrl($this->maniaControl->getManialinkManager()->getIconManager()->getIcon(IconManager::MX_ICON)); - $quad->setPosition($width/2 - 3, -3, -0.5); + $quad->setPosition($width/2 - 3, -$height/2 + 3, -0.5); $quad->setSize(3.5, 3.5); $quad->setUrl($map->mx->pageurl); }