small fix for tm multilap

This commit is contained in:
kremsy 2017-07-14 17:39:01 +02:00
parent a689924ac8
commit dcd8404b79
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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);
}