From af20f646a486ce5bcadb03a735c867b7fa9ab66a Mon Sep 17 00:00:00 2001 From: Max Klaversma Date: Sat, 1 Mar 2014 19:23:21 +0100 Subject: [PATCH] Changes to record widgets --- application/plugins/Dedimania/Dedimania.php | 7 +++++-- application/plugins/LocalRecords.php | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/application/plugins/Dedimania/Dedimania.php b/application/plugins/Dedimania/Dedimania.php index 8619db86..fd9e8b94 100644 --- a/application/plugins/Dedimania/Dedimania.php +++ b/application/plugins/Dedimania/Dedimania.php @@ -920,10 +920,10 @@ class Dedimania implements CallbackListener, TimerListener, Plugin { $frame->add($recordFrame); $recordFrame->setPosition(0, $y); - $backgroundQuad = new Quad(); + /*$backgroundQuad = new Quad(); $recordFrame->add($backgroundQuad); $backgroundQuad->setSize($width * 1.04, $lineHeight * 1.4); - $backgroundQuad->setStyles($quadStyle, $quadSubstyle); + $backgroundQuad->setStyles($quadStyle, $quadSubstyle);*/ //Rank $rankLabel = new Label(); @@ -934,6 +934,7 @@ class Dedimania implements CallbackListener, TimerListener, Plugin { $rankLabel->setTextSize(1); $rankLabel->setTextPrefix('$o'); $rankLabel->setText($record->rank); + $rankLabel->setTextEmboss(true); //Name $nameLabel = new Label(); @@ -943,6 +944,7 @@ class Dedimania implements CallbackListener, TimerListener, Plugin { $nameLabel->setSize($width * 0.6, $lineHeight); $nameLabel->setTextSize(1); $nameLabel->setText($record->nickName); + $nameLabel->setTextEmboss(true); //Time $timeLabel = new Label(); @@ -952,6 +954,7 @@ class Dedimania implements CallbackListener, TimerListener, Plugin { $timeLabel->setSize($width * 0.25, $lineHeight); $timeLabel->setTextSize(1); $timeLabel->setText(Formatter::formatTime($record->best)); + $timeLabel->setTextEmboss(true); } return $manialink->render()->saveXML(); diff --git a/application/plugins/LocalRecords.php b/application/plugins/LocalRecords.php index 0a5b47e6..788d3a87 100644 --- a/application/plugins/LocalRecords.php +++ b/application/plugins/LocalRecords.php @@ -320,10 +320,10 @@ class LocalRecordsPlugin implements CallbackListener, TimerListener, Plugin { $frame->add($recordFrame); $recordFrame->setPosition(0, $y); - $backgroundQuad = new Quad(); + /*$backgroundQuad = new Quad(); $recordFrame->add($backgroundQuad); $backgroundQuad->setSize($width * 1.04, $lineHeight * 1.4); - $backgroundQuad->setStyles($quadStyle, $quadSubstyle); + $backgroundQuad->setStyles($quadStyle, $quadSubstyle);*/ $rankLabel = new Label(); $recordFrame->add($rankLabel); @@ -333,6 +333,7 @@ class LocalRecordsPlugin implements CallbackListener, TimerListener, Plugin { $rankLabel->setTextSize(1); $rankLabel->setTextPrefix('$o'); $rankLabel->setText($record->rank); + $rankLabel->setTextEmboss(true); $nameLabel = new Label(); $recordFrame->add($nameLabel); @@ -341,6 +342,7 @@ class LocalRecordsPlugin implements CallbackListener, TimerListener, Plugin { $nameLabel->setSize($width * 0.6, $lineHeight); $nameLabel->setTextSize(1); $nameLabel->setText($record->nickname); + $nameLabel->setTextEmboss(true); $timeLabel = new Label(); $recordFrame->add($timeLabel); @@ -349,6 +351,7 @@ class LocalRecordsPlugin implements CallbackListener, TimerListener, Plugin { $timeLabel->setSize($width * 0.25, $lineHeight); $timeLabel->setTextSize(1); $timeLabel->setText(Formatter::formatTime($record->time)); + $timeLabel->setTextEmboss(true); } return $manialink->render()->saveXML();