small fix for tm multilap
This commit is contained in:
parent
a689924ac8
commit
dcd8404b79
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user