small fixes

This commit is contained in:
kremsy 2014-04-14 19:27:56 +02:00 committed by Steffen Schröder
parent c82f14b07c
commit df54ea52bb
2 changed files with 11 additions and 7 deletions

View File

@ -217,12 +217,12 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener
$mapFrame->add($awardQuad);
$awardQuad->setSize(3, 3);
$awardQuad->setSubStyle($awardQuad::SUBSTYLE_OfficialRace);
$awardQuad->setX($x + 99.5);
$awardQuad->setX($x + 97.5);
$awardQuad->setZ(0.01);
$awardLabel = new Label_Text();
$mapFrame->add($awardLabel);
$awardLabel->setX($x + 101);
$awardLabel->setX($x + 99);
$awardLabel->setHAlign(Control::LEFT);
$awardLabel->setText($map->awards);
$awardLabel->setTextSize(1.3);
@ -235,8 +235,8 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener
$karmaGauge = new Gauge();
$mapFrame->add($karmaGauge);
$karmaGauge->setZ(2);
$karmaGauge->setX($x + 90);
$karmaGauge->setSize(20, 9);
$karmaGauge->setX($x + 89.5);
$karmaGauge->setSize(16.5, 9);
$karmaGauge->setDrawBg(false);
$karma = floatval($karma);
$karmaGauge->setRatio($karma + 0.15 - $karma * 0.15);
@ -246,8 +246,8 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener
$karmaLabel = new Label();
$mapFrame->add($karmaLabel);
$karmaLabel->setZ(2);
$karmaLabel->setX($x + 90);
$karmaLabel->setSize(20 * 0.9, 5);
$karmaLabel->setX($x + 89.5);
$karmaLabel->setSize(16.5 * 0.9, 5);
$karmaLabel->setTextSize(0.9);
$karmaLabel->setTextColor('000');
$karmaLabel->setAlign(Control::CENTER, Control::CENTER);

View File

@ -306,8 +306,12 @@ class ManiaExchangeManager{
if($this->maniaControl->settingManager->getSetting($this, self::SETTING_MP3_BETA_TESTING)){
$url .= '&key=t42kEMjzH7xpAjBFHAvEkC7rqAlw';
if($titlePrefix == "tm"){
$url .= '&mapgroup=17';
}else{
$url .= '&mapgroup=1';
}
}
// Get MapTypes
try {