Update WidgetPlugin.php

This commit is contained in:
Chapelier2000 2017-07-18 12:46:50 +02:00 committed by GitHub
parent a40f0eb653
commit 25fdd61214

View File

@ -261,6 +261,16 @@ class WidgetPlugin implements CallbackListener, TimerListener, Plugin {
$label->setText($map->authorLogin); $label->setText($map->authorLogin);
$label->setTextColor('fff'); $label->setTextColor('fff');
$label->setSize($width - 5, $height); $label->setSize($width - 5, $height);
//AUTEUR TIME
$label = new Label_Text();
$frame->addChild($label);
$label->setPosition(0, -4.3, 0.2);
$label->setTextSize(1);
$label->setScale(0.8);
$label->setText('$s' . Formatter::formatTime($map->authorTime));
$label->setTextColor('F7F');
$label->setSize($width - 5, $height);
if (isset($map->mx->pageurl)) { if (isset($map->mx->pageurl)) {
$quad = new Quad(); $quad = new Quad();