Page 1 of 1
Label styles cheat sheet
Posted: 21 Nov 2011, 15:18
by gouxim
The
example Manialink is great but is not very practical for Label styles, so I did a quick and dirty cheat sheet for label styles, ie. every styles with and without link.
Manialink:
labels
Re: Label styles cheat sheet
Posted: 21 Nov 2011, 15:20
by gouxim
And if anyone is wondering, here's the PHP code to display that with ManiaLib:
Code: Select all
use ManiaLib\Gui\Manialink;
use ManiaLib\Gui\Elements\Label;
$reflection = new \ReflectionClass('\ManiaLib\Gui\Elements\Label');
$styles = $reflection->getConstants();
Manialink::beginFrame(-128, 86, 0, 1, new \ManiaLib\Gui\Layouts\Flow(320, 180));
foreach($styles as $style)
{
$ui = new Label(64, 8);
$ui->setAlign('center', 'center');
$ui->setStyle($style);
$ui->setText($style);
$ui->save();
$ui = new Label(64, 8);
$ui->setAlign('center', 'center');
$ui->setManialink('labels');
$ui->setStyle($style);
$ui->setText($style);
$ui->save();
}
Manialink::endFrame();
Manialink::beginFrame(123, -81);
{
$url = 'http://maniahome.maniaplanet.com/add/?'.http_build_query(
array(
'url' => 'labels',
'name' => '$09fManiaplanet$z label styles'));
$ui = new \ManiaLib\Gui\Elements\IncludeManialink();
$ui->setUrl($url);
$ui->save();
}
Manialink::endFrame();
Re: Label styles cheat sheet
Posted: 06 Mar 2013, 20:35
by Akbalder
Do the styles of the markers (ie: icon="PointA") exist?
I tried style="SmIcons128x128_1" subtyle="PointA" but it doesn't seem to work.
Having an up to date list of all the styles would be great.

Re: Label styles cheat sheet
Posted: 19 May 2013, 18:42
by djhubertus
@refresh
Where i can find smicons128x128 list ?

Re: Label styles cheat sheet
Posted: 19 May 2013, 20:44
by steeffeen
i'm not sure what you mean but there isn't any SMIcons library.. there are several images in the game data which are used for realm and so on though
Code: Select all
"file://Media/Manialinks/Shootmania/Common/..."
you can find the files in:
/ProgramData/ManiaPlanet/PacksCache/ShootMania_extras.zip/Media/Manialinks/ShootMania/Common/..
(btw isn't this thread about label styles and not quad styles?

)
Re: Label styles cheat sheet
Posted: 19 May 2013, 21:57
by djhubertus
In shootmania pack there is a smicons128x128_1 .dds image with icons (for example goal marker from elite )
And you can use this with <marker icon="">
Re: Label styles cheat sheet
Posted: 19 May 2013, 23:35
by steeffeen
ah yeah, i see
knowing how the icon="" works would be great indeed