small widget style improvement
This commit is contained in:
parent
e3eb2b0aa8
commit
5fb76e2428
@ -319,7 +319,7 @@ class WidgetPlugin implements CallbackListener, Plugin {
|
|||||||
$playerCount++;
|
$playerCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Player Quad / Label
|
|
||||||
$label = new Label_Text();
|
$label = new Label_Text();
|
||||||
$frame->add($label);
|
$frame->add($label);
|
||||||
$label->setPosition(0, 1.5, 0.2);
|
$label->setPosition(0, 1.5, 0.2);
|
||||||
@ -327,11 +327,12 @@ class WidgetPlugin implements CallbackListener, Plugin {
|
|||||||
$label->setTextSize(1.3);
|
$label->setTextSize(1.3);
|
||||||
$label->setText($serverName);
|
$label->setText($serverName);
|
||||||
$label->setTextColor("FFF");
|
$label->setTextColor("FFF");
|
||||||
|
|
||||||
|
// Player Quad / Label
|
||||||
$label = new Label_Text();
|
$label = new Label_Text();
|
||||||
$frame->add($label);
|
$frame->add($label);
|
||||||
$label->setPosition(-3.9, -1.5, 0.2);
|
$label->setPosition(-$width /2 + 9, -1.5, 0.2);
|
||||||
$label->setAlign(Control::CENTER, Control::CENTER);
|
$label->setAlign(Control::LEFT, Control::CENTER);
|
||||||
$label->setTextSize(1);
|
$label->setTextSize(1);
|
||||||
$label->setScale(0.8);
|
$label->setScale(0.8);
|
||||||
$label->setText($playerCount . " / " . $maxPlayers['NextValue']);
|
$label->setText($playerCount . " / " . $maxPlayers['NextValue']);
|
||||||
@ -340,15 +341,15 @@ class WidgetPlugin implements CallbackListener, Plugin {
|
|||||||
$quad = new Quad_Icons128x128_1();
|
$quad = new Quad_Icons128x128_1();
|
||||||
$frame->add($quad);
|
$frame->add($quad);
|
||||||
$quad->setSubStyle($quad::SUBSTYLE_Multiplayer);
|
$quad->setSubStyle($quad::SUBSTYLE_Multiplayer);
|
||||||
$quad->setPosition(-8, -1.6, 0.2);
|
$quad->setPosition(-$width /2 + 7, -1.6, 0.2);
|
||||||
$quad->setSize(2.5, 2.5);
|
$quad->setSize(2.5, 2.5);
|
||||||
$quad->setHAlign(Control::CENTER);
|
$quad->setHAlign(Control::CENTER);
|
||||||
|
|
||||||
// Spectator Quad / Label
|
// Spectator Quad / Label
|
||||||
$label = new Label_Text();
|
$label = new Label_Text();
|
||||||
$frame->add($label);
|
$frame->add($label);
|
||||||
$label->setPosition(8.5, -1.5, 0.2);
|
$label->setPosition(2, -1.5, 0.2);
|
||||||
$label->setAlign(Control::CENTER, Control::CENTER);
|
$label->setAlign(Control::LEFT, Control::CENTER);
|
||||||
$label->setTextSize(1);
|
$label->setTextSize(1);
|
||||||
$label->setScale(0.8);
|
$label->setScale(0.8);
|
||||||
$label->setText($spectatorCount . " / " . $maxSpectators['NextValue']);
|
$label->setText($spectatorCount . " / " . $maxSpectators['NextValue']);
|
||||||
@ -357,12 +358,12 @@ class WidgetPlugin implements CallbackListener, Plugin {
|
|||||||
$quad = new Quad_Icons64x64_1();
|
$quad = new Quad_Icons64x64_1();
|
||||||
$frame->add($quad);
|
$frame->add($quad);
|
||||||
$quad->setSubStyle($quad::SUBSTYLE_Camera);
|
$quad->setSubStyle($quad::SUBSTYLE_Camera);
|
||||||
$quad->setPosition(3.5, -1.6, 0.2);
|
$quad->setPosition(0, -1.6, 0.2);
|
||||||
$quad->setSize(3.3, 2.5);
|
$quad->setSize(3.3, 2.5);
|
||||||
$quad->setHAlign(Control::CENTER);
|
$quad->setHAlign(Control::CENTER);
|
||||||
|
|
||||||
// Favorite quad
|
// Favorite quad
|
||||||
// $quad = new Quad_Icons64x64_1();
|
$quad = new Quad_Icons64x64_1();
|
||||||
$quad = new Quad_Icons128x128_1();
|
$quad = new Quad_Icons128x128_1();
|
||||||
$frame->add($quad);
|
$frame->add($quad);
|
||||||
// $quad->setSubStyle($quad::SUBSTYLE_StateFavourite);
|
// $quad->setSubStyle($quad::SUBSTYLE_StateFavourite);
|
||||||
|
Loading…
Reference in New Issue
Block a user