size for servername label, other fav butt

This commit is contained in:
kremsy 2014-01-06 22:16:41 +01:00
parent 2e119828bc
commit e736048419

View File

@ -313,10 +313,11 @@ class WidgetPlugin implements CallbackListener, Plugin {
$frame->add($label); $frame->add($label);
$label->setPosition(0, 1.5, 0.2); $label->setPosition(0, 1.5, 0.2);
$label->setAlign(Control::CENTER, Control::CENTER); $label->setAlign(Control::CENTER, Control::CENTER);
$label->setSize($width - 5, $height);
$label->setTextSize(1.3); $label->setTextSize(1.3);
$label->setText(Formatter::stripDirtyCodes($serverName)); $label->setText(Formatter::stripDirtyCodes($serverName));
$label->setTextColor("FFF"); $label->setTextColor("FFF");
//$label->setAutoNewLine(true);
// Player Quad / Label // Player Quad / Label
$label = new Label_Text(); $label = new Label_Text();
$frame->add($label); $frame->add($label);
@ -352,11 +353,11 @@ class WidgetPlugin implements CallbackListener, Plugin {
$quad->setHAlign(Control::CENTER); $quad->setHAlign(Control::CENTER);
// Favorite quad // Favorite quad
$quad = new Quad_Icons128x128_1(); $quad = new Quad_Icons64x64_1();
$frame->add($quad); $frame->add($quad);
$quad->setSubStyle($quad::SUBSTYLE_ServersFavorites); $quad->setSubStyle($quad::SUBSTYLE_StateFavourite);
$quad->setPosition($width / 2 - 4, -1.5, -0.5); $quad->setPosition($width / 2 - 4, -1.5, -0.5);
$quad->setSize(4, 4); $quad->setSize(3, 3);
$quad->setHAlign(Control::CENTER); $quad->setHAlign(Control::CENTER);
$quad->setManialink('mcontrol?favorite&' . $this->maniaControl->server->login); $quad->setManialink('mcontrol?favorite&' . $this->maniaControl->server->login);