diff --git a/core/Script/ModeScriptEventManager.php b/core/Script/ModeScriptEventManager.php index 722850a4..18b456d0 100644 --- a/core/Script/ModeScriptEventManager.php +++ b/core/Script/ModeScriptEventManager.php @@ -23,7 +23,7 @@ use Maniaplanet\DedicatedServer\Xmlrpc\GameModeException; class ModeScriptEventManager implements UsageInformationAble { use UsageInformationTrait; - const API_VERSION = "2.2.0"; + const API_VERSION = "2.3.0"; /** @var ManiaControl $maniaControl */ private $maniaControl; diff --git a/plugins/MCTeam/WidgetPlugin.php b/plugins/MCTeam/WidgetPlugin.php index b2034bb3..3297866b 100644 --- a/plugins/MCTeam/WidgetPlugin.php +++ b/plugins/MCTeam/WidgetPlugin.php @@ -188,6 +188,9 @@ class WidgetPlugin implements CallbackListener, TimerListener, Plugin { $roundScorePosY = $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_TM_ROUND_SCORE_WIDGET_POSY); $uiProperties->setRoundScoresPosition($roundScorePosX, $roundScorePosY, 5); + //MultiLap and Chase Info Widget top Right + $uiProperties->setMultiLapInfoPosition(140, 65, 5); + $this->maniaControl->getModeScriptEventManager()->setTrackmaniaUIProperties((string) $uiProperties); return true; @@ -421,6 +424,8 @@ class WidgetPlugin implements CallbackListener, TimerListener, Plugin { $uiProperties->setMapInfoVisible(true); $uiProperties->setLiveInfoPosition(-159, 84, 5); $uiProperties->setRoundScoresPosition(-158.5, 40, 5); + $uiProperties->setMultiLapInfoPosition(140, 84, 5); + $this->maniaControl->getModeScriptEventManager()->setTrackmaniaUIProperties((string) $uiProperties); }