small fixes
This commit is contained in:
parent
c82f14b07c
commit
df54ea52bb
@ -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);
|
||||
|
@ -306,7 +306,11 @@ class ManiaExchangeManager{
|
||||
|
||||
if($this->maniaControl->settingManager->getSetting($this, self::SETTING_MP3_BETA_TESTING)){
|
||||
$url .= '&key=t42kEMjzH7xpAjBFHAvEkC7rqAlw';
|
||||
$url .= '&mapgroup=1';
|
||||
if($titlePrefix == "tm"){
|
||||
$url .= '&mapgroup=17';
|
||||
}else{
|
||||
$url .= '&mapgroup=1';
|
||||
}
|
||||
}
|
||||
|
||||
// Get MapTypes
|
||||
|
Loading…
Reference in New Issue
Block a user