Set the Zindex of backgronds in case of opaque quad

This commit is contained in:
Beu
2022-04-24 10:17:28 +02:00
parent ae25baabf3
commit 8c78f8940c
4 changed files with 14 additions and 3 deletions

View File

@ -592,6 +592,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin {
}
// we have a vote-message
if ($this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_ALLOW_ON_LOCAL)) {
/** @var \MCTeam\LocalRecordsPlugin */
$localRecordPlugin = $this->maniaControl->getPluginManager()->getPlugin(self::DEFAULT_LOCAL_RECORDS_PLUGIN);
if (!$localRecordPlugin) {
return;
@ -924,6 +925,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin {
$frame->addChild($backgroundQuad);
$backgroundQuad->setSize($width, $height);
$backgroundQuad->setStyles($quadStyle, $quadSubstyle);
$backgroundQuad->setZ(-1.);
$titleLabel = new Label();
$frame->addChild($titleLabel);