Page 5 of 6

Re: Manialink styles

Posted: 07 Mar 2014, 11:44
by gouxim
Much hello,

For curious people, here is an example usage of the JSON ref.

This tool https://github.com/maniaplanet/manialib ... lasses.php generates all the style classes for ManiaLib https://github.com/maniaplanet/manialib ... ink/Styles

Re: Manialink styles

Posted: 07 Mar 2014, 14:16
by gouxim
Much hello,

I have added the 3D styles to the JSON file: https://github.com/maniaplanet/document ... 1549aa2daf

Re: Manialink styles

Posted: 14 May 2014, 15:26
by steeffeen
could you please give some information about the list of Entry styles?
i couldn't find a list and only know that for example 'TextValueSmall' is an entry style while it's a label style as well, do they work all? i suppose not

Re: Manialink styles

Posted: 14 May 2014, 16:21
by noyranea
You should try using the Interface Designer (TitleMenu -> Editors -> TitleTools -> Interface Designer).

It allows you to edit and display Manialink Code realtime, and you can access the Styles manialink while in the editor using the Ctrl+O shortcut.
You'll have a good idea of which styles work and which ones don't quite quickly.

Hope this helps,
--noyranea

Re: Manialink styles

Posted: 14 May 2014, 21:49
by steeffeen
noyranea wrote:It allows you to edit and display Manialink Code realtime, and you can access the Styles manialink while in the editor using the Ctrl+O shortcut.
You'll have a good idea of which styles work and which ones don't quite quickly.
thanks but that's quite a pain imo ^^
just a simple "every label style is supposed to work for entries, too" would be enough for me
or maybe "the quad styles work as well but that's rather a bug *cough* i mean a feature"?

Re: Manialink styles

Posted: 15 May 2014, 09:13
by noyranea
steeffeen wrote:just a simple "every label style is supposed to work for entries, too" would be enough for me
Sorry, I didn't even understood you were speaking about entries ^^
steeffeen wrote:or maybe "the quad styles work as well but that's rather a bug *cough* i mean a feature"?
Using a quad style in a label or an entry is syntaxically correct and the xml parser won't annoy you, so I wouldn't say it is a bug nor a feature. It's not supposed to do anything interesting actually.

Re: Manialink styles

Posted: 15 May 2014, 09:55
by steeffeen
noyranea wrote:Using a quad style in a label or an entry is syntaxically correct and the xml parser won't annoy you, so I wouldn't say it is a bug nor a feature. It's not supposed to do anything interesting actually.
it's not about the xml style but about the fact that for example the quad style "321Go" creates a dynamic visual effect on an entry ^^

Re: Manialink styles

Posted: 15 May 2014, 13:21
by Eole
I don't have a definite answer but from my testings all label styles should work on entries, but with different level of support. The button styles (TexCard*) won't change the style of the entries. Some label styles will have a background and some others won't. But overall the entry will always override the majority of the original label style, only the font will remain, when typing into it.

Re: Manialink styles

Posted: 16 May 2014, 19:57
by steeffeen
Uhm how do you use the Quad style 'SliderCursor2' (in Icons64x64_1)?
if you hover over it the quad becomes a checkmark, that's what i want to achieve the whole time
i tried setting the new CMlQuad::StyleSelected property but that doesn't change anything

Re: Manialink styles

Posted: 20 May 2014, 17:26
by Eole
If you replace "SliderCursor2" with "Check" and then set StyleSelected to true it will works. :oops: