Manialink styles

Talk about ManiaLink development in this forum

Moderator: NADEO

User avatar
gouxim
Nadeo
Nadeo
Posts: 1186
Joined: 14 Jun 2010, 17:20

Re: Manialink styles

Post 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
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)
User avatar
gouxim
Nadeo
Nadeo
Posts: 1186
Joined: 14 Jun 2010, 17:20

Re: Manialink styles

Post by gouxim »

Much hello,

I have added the 3D styles to the JSON file: https://github.com/maniaplanet/document ... 1549aa2daf
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: Manialink styles

Post 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
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    noyranea
    Nadeo
    Nadeo
    Posts: 187
    Joined: 29 Apr 2014, 14:50
    Location: Paris, France

    Re: Manialink styles

    Post 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
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: Manialink styles

    Post 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"?
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      noyranea
      Nadeo
      Nadeo
      Posts: 187
      Joined: 29 Apr 2014, 14:50
      Location: Paris, France

      Re: Manialink styles

      Post 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.
      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2463
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: Manialink styles

      Post 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 ^^
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks
        User avatar
        Eole
        Nadeo
        Nadeo
        Posts: 1265
        Joined: 26 Apr 2011, 21:08

        Re: Manialink styles

        Post 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.
        Contribute to the ManiaPlanet documentation on GitHub
        A question about ManiaScript? Ask it here!
        User avatar
        steeffeen
        Translator
        Translator
        Posts: 2463
        Joined: 14 Oct 2012, 16:22
        Location: Germany

        Re: Manialink styles

        Post 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
          Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

          ManiaControl, FancyManiaLinks
          User avatar
          Eole
          Nadeo
          Nadeo
          Posts: 1265
          Joined: 26 Apr 2011, 21:08

          Re: Manialink styles

          Post by Eole »

          If you replace "SliderCursor2" with "Check" and then set StyleSelected to true it will works. :oops:
          Contribute to the ManiaPlanet documentation on GitHub
          A question about ManiaScript? Ask it here!
          Post Reply

          Return to “ManiaLink”

          Who is online

          Users browsing this forum: No registered users and 1 guest