Changes to record widgets

This commit is contained in:
Max Klaversma 2014-03-01 19:23:21 +01:00 committed by Steffen Schröder
parent 0f9ac605dd
commit af20f646a4
2 changed files with 10 additions and 4 deletions

View File

@ -920,10 +920,10 @@ class Dedimania implements CallbackListener, TimerListener, Plugin {
$frame->add($recordFrame); $frame->add($recordFrame);
$recordFrame->setPosition(0, $y); $recordFrame->setPosition(0, $y);
$backgroundQuad = new Quad(); /*$backgroundQuad = new Quad();
$recordFrame->add($backgroundQuad); $recordFrame->add($backgroundQuad);
$backgroundQuad->setSize($width * 1.04, $lineHeight * 1.4); $backgroundQuad->setSize($width * 1.04, $lineHeight * 1.4);
$backgroundQuad->setStyles($quadStyle, $quadSubstyle); $backgroundQuad->setStyles($quadStyle, $quadSubstyle);*/
//Rank //Rank
$rankLabel = new Label(); $rankLabel = new Label();
@ -934,6 +934,7 @@ class Dedimania implements CallbackListener, TimerListener, Plugin {
$rankLabel->setTextSize(1); $rankLabel->setTextSize(1);
$rankLabel->setTextPrefix('$o'); $rankLabel->setTextPrefix('$o');
$rankLabel->setText($record->rank); $rankLabel->setText($record->rank);
$rankLabel->setTextEmboss(true);
//Name //Name
$nameLabel = new Label(); $nameLabel = new Label();
@ -943,6 +944,7 @@ class Dedimania implements CallbackListener, TimerListener, Plugin {
$nameLabel->setSize($width * 0.6, $lineHeight); $nameLabel->setSize($width * 0.6, $lineHeight);
$nameLabel->setTextSize(1); $nameLabel->setTextSize(1);
$nameLabel->setText($record->nickName); $nameLabel->setText($record->nickName);
$nameLabel->setTextEmboss(true);
//Time //Time
$timeLabel = new Label(); $timeLabel = new Label();
@ -952,6 +954,7 @@ class Dedimania implements CallbackListener, TimerListener, Plugin {
$timeLabel->setSize($width * 0.25, $lineHeight); $timeLabel->setSize($width * 0.25, $lineHeight);
$timeLabel->setTextSize(1); $timeLabel->setTextSize(1);
$timeLabel->setText(Formatter::formatTime($record->best)); $timeLabel->setText(Formatter::formatTime($record->best));
$timeLabel->setTextEmboss(true);
} }
return $manialink->render()->saveXML(); return $manialink->render()->saveXML();

View File

@ -320,10 +320,10 @@ class LocalRecordsPlugin implements CallbackListener, TimerListener, Plugin {
$frame->add($recordFrame); $frame->add($recordFrame);
$recordFrame->setPosition(0, $y); $recordFrame->setPosition(0, $y);
$backgroundQuad = new Quad(); /*$backgroundQuad = new Quad();
$recordFrame->add($backgroundQuad); $recordFrame->add($backgroundQuad);
$backgroundQuad->setSize($width * 1.04, $lineHeight * 1.4); $backgroundQuad->setSize($width * 1.04, $lineHeight * 1.4);
$backgroundQuad->setStyles($quadStyle, $quadSubstyle); $backgroundQuad->setStyles($quadStyle, $quadSubstyle);*/
$rankLabel = new Label(); $rankLabel = new Label();
$recordFrame->add($rankLabel); $recordFrame->add($rankLabel);
@ -333,6 +333,7 @@ class LocalRecordsPlugin implements CallbackListener, TimerListener, Plugin {
$rankLabel->setTextSize(1); $rankLabel->setTextSize(1);
$rankLabel->setTextPrefix('$o'); $rankLabel->setTextPrefix('$o');
$rankLabel->setText($record->rank); $rankLabel->setText($record->rank);
$rankLabel->setTextEmboss(true);
$nameLabel = new Label(); $nameLabel = new Label();
$recordFrame->add($nameLabel); $recordFrame->add($nameLabel);
@ -341,6 +342,7 @@ class LocalRecordsPlugin implements CallbackListener, TimerListener, Plugin {
$nameLabel->setSize($width * 0.6, $lineHeight); $nameLabel->setSize($width * 0.6, $lineHeight);
$nameLabel->setTextSize(1); $nameLabel->setTextSize(1);
$nameLabel->setText($record->nickname); $nameLabel->setText($record->nickname);
$nameLabel->setTextEmboss(true);
$timeLabel = new Label(); $timeLabel = new Label();
$recordFrame->add($timeLabel); $recordFrame->add($timeLabel);
@ -349,6 +351,7 @@ class LocalRecordsPlugin implements CallbackListener, TimerListener, Plugin {
$timeLabel->setSize($width * 0.25, $lineHeight); $timeLabel->setSize($width * 0.25, $lineHeight);
$timeLabel->setTextSize(1); $timeLabel->setTextSize(1);
$timeLabel->setText(Formatter::formatTime($record->time)); $timeLabel->setText(Formatter::formatTime($record->time));
$timeLabel->setTextEmboss(true);
} }
return $manialink->render()->saveXML(); return $manialink->render()->saveXML();