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 {
|
class ModeScriptEventManager implements UsageInformationAble {
|
||||||
use UsageInformationTrait;
|
use UsageInformationTrait;
|
||||||
|
|
||||||
const API_VERSION = "2.2.0";
|
const API_VERSION = "2.3.0";
|
||||||
|
|
||||||
/** @var ManiaControl $maniaControl */
|
/** @var ManiaControl $maniaControl */
|
||||||
private $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);
|
$roundScorePosY = $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_TM_ROUND_SCORE_WIDGET_POSY);
|
||||||
$uiProperties->setRoundScoresPosition($roundScorePosX, $roundScorePosY, 5);
|
$uiProperties->setRoundScoresPosition($roundScorePosX, $roundScorePosY, 5);
|
||||||
|
|
||||||
|
//MultiLap and Chase Info Widget top Right
|
||||||
|
$uiProperties->setMultiLapInfoPosition(140, 65, 5);
|
||||||
|
|
||||||
$this->maniaControl->getModeScriptEventManager()->setTrackmaniaUIProperties((string) $uiProperties);
|
$this->maniaControl->getModeScriptEventManager()->setTrackmaniaUIProperties((string) $uiProperties);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -421,6 +424,8 @@ class WidgetPlugin implements CallbackListener, TimerListener, Plugin {
|
|||||||
$uiProperties->setMapInfoVisible(true);
|
$uiProperties->setMapInfoVisible(true);
|
||||||
$uiProperties->setLiveInfoPosition(-159, 84, 5);
|
$uiProperties->setLiveInfoPosition(-159, 84, 5);
|
||||||
$uiProperties->setRoundScoresPosition(-158.5, 40, 5);
|
$uiProperties->setRoundScoresPosition(-158.5, 40, 5);
|
||||||
|
$uiProperties->setMultiLapInfoPosition(140, 84, 5);
|
||||||
|
|
||||||
$this->maniaControl->getModeScriptEventManager()->setTrackmaniaUIProperties((string) $uiProperties);
|
$this->maniaControl->getModeScriptEventManager()->setTrackmaniaUIProperties((string) $uiProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user