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
Label styles cheat sheet
Moderator: NADEO
Label styles cheat sheet
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 

Re: Label styles cheat sheet
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();
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 

Re: Label styles cheat sheet
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.
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.

- djhubertus
- Translator
- Posts: 1097
- Joined: 09 Jul 2012, 18:30
- Location: Poland
- Contact:
Re: Label styles cheat sheet
@refresh
Where i can find smicons128x128 list ?
Where i can find smicons128x128 list ?

My Gamemodes:
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
Re: Label styles cheat sheet
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
you can find the files in:
)
Code: Select all
"file://Media/Manialinks/Shootmania/Common/..."
(btw isn't this thread about label styles and not quad styles?/ProgramData/ManiaPlanet/PacksCache/ShootMania_extras.zip/Media/Manialinks/ShootMania/Common/..

- djhubertus
- Translator
- Posts: 1097
- Joined: 09 Jul 2012, 18:30
- Location: Poland
- Contact:
Re: Label styles cheat sheet
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="">
And you can use this with <marker icon="">
My Gamemodes:
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
Re: Label styles cheat sheet
ah yeah, i see
knowing how the icon="" works would be great indeed
knowing how the icon="" works would be great indeed
Who is online
Users browsing this forum: No registered users and 1 guest