recent additions

Talk about ManiaLink development in this forum

Moderator: NADEO

User avatar
xbx
Nadeo
Nadeo
Posts: 1076
Joined: 14 Jun 2010, 17:35

recent additions

Post by xbx » 25 Apr 2013, 10:55

(or not so recent...)

Here is a list of the recent addtions to the manialinks xml:
  • hidden='true' attribute. Usefull when a script is going to init the values and show it later on
  • translate='true' attribute. By default the text in manialinks is left untouched. But if you add this attribute, the text will be looked up in the game translation dictionnary.
    In addition there's an other trick here (used internally by the game mode scripts):
    if the label starts with unicode character U+092, it's the same as translate='true'
    if the label starts with unicode character U+091, it enables string interpolation and translation:
    "U+091hello %1U+091world" will translate "hello %1" ->"bonjour %1!" (if it were in the in-game translation dictionnary), and will them replace %1 -> will write "bonjour world!"
  • textprefix="$o$i" to add a prefix to the label. (usefull for scripting, you can set the value in the label dynamically and have the style modifiers in the prefix)
  • textemboss="true" like "$s" modifier, except it is forced and further $s in the label won't cancel it.
  • opacity='0.75' to change the opacity of a quad or a label.
  • Quads: when used with "image=...", you can modify the color of the image
    - colorize='F00' takes as input an image with only pure green hue (black -> green -> white), and will change the hue. (and only the hue of the inpur color is used)
    - modulatecolor='F00' will modulate the image with a color filter
    (the color can be RGB RRGGBB RGBA RRGGBBAA)
  • "audio"/"video" elems:
    music="true" will send the sound in the music mix (so that the volume gets controlled by the music slider instead of the sound volume slider)
    volume=".5" will change the sound attenuation. default value is 0.707 (-3dB)

User avatar
Jojo_44
Posts: 500
Joined: 12 Jul 2010, 15:58
Location: Germany->Bavaria
Contact:

Re: recent additions

Post by Jojo_44 » 25 Apr 2013, 11:18

Thanks for clarifying this :thumbsup:

If you have some time please take a look at this thread:

http://forum.maniaplanet.com/viewtopic. ... 79&t=18358

It´s a list of all bugs known in Manialinks/Maniascripts.

regards, Jojo
Image
my english sounds very unfriendly but it isn´t ;)

User avatar
steeffeen
Translator
Translator
Posts: 2471
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: recent additions

Post by steeffeen » 25 Apr 2013, 13:23

i would rather like seeing this fixed first, after all it's the manialink forum :D
http://forum.maniaplanet.com/viewtopic. ... 68&t=17508
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks

    User avatar
    spaii
    Posts: 1073
    Joined: 19 Jun 2010, 00:04
    Location: Rémy - France
    Contact:

    Re: recent additions

    Post by spaii » 25 Apr 2013, 13:26

    Agree with Jojo_44 and steeffeen posts :thumbsup:

    First one is nice :thumbsup: :clap:

    User avatar
    TGYoshi
    Posts: 807
    Joined: 15 Mar 2011, 16:59

    Re: recent additions

    Post by TGYoshi » 25 Apr 2013, 14:26

    Very cool additions.

    Hoping for some extended maniascript support related to things like these tho, but keep it up! :1010
    =3

    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2471
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: recent additions

    Post by steeffeen » 25 Apr 2013, 14:37

    TGYoshi wrote:Very cool additions.
    Hoping for some extended maniascript support related to things like these tho, but keep it up! :1010
    same here
    1. bug fixes
    2. access to at least some of the many new properties through maniascript (which are great btw)
    :yes:
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks

      User avatar
      undef.de
      Posts: 1525
      Joined: 06 Apr 2011, 21:57
      Location: Germany
      Contact:

      Re: recent additions

      Post by undef.de » 05 May 2013, 18:45

      The opacity does not work with in-game images like this:

      Code: Select all

      <quad posn="0 0 0" sizen="2 2" opacity="0.5" style="Icons128x128_1" style="United"/>
      
      Or miss i something?
      Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
      Visit the official website for more: UASECO.org


      Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

      You like what i do? Then award a ManiaStar.

      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2471
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: recent additions

      Post by steeffeen » 05 May 2013, 18:46

      undef.de wrote:The opacity does not work with in-game images like this:

      Code: Select all

      <quad posn="0 0 0" sizen="2 2" opacity="0.5" style="Icons128x128_1" style="United"/>
      
      Or miss i something?
      that's not an image but a style...

      image:

      Code: Select all

      <quad image="url" opacity="0.5"/>
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks

        User avatar
        undef.de
        Posts: 1525
        Joined: 06 Apr 2011, 21:57
        Location: Germany
        Contact:

        Re: recent additions

        Post by undef.de » 05 May 2013, 18:50

        steeffeen wrote: that's not an image but a style...

        image:

        Code: Select all

        <quad image="url" opacity="0.5"/>
        :teub: I guess i need glasses... thanks!

        EDIT: But it would be nice to have!
        Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
        Visit the official website for more: UASECO.org


        Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

        You like what i do? Then award a ManiaStar.

        User avatar
        steeffeen
        Translator
        Translator
        Posts: 2471
        Joined: 14 Oct 2012, 16:22
        Location: Germany

        Re: recent additions

        Post by steeffeen » 05 May 2013, 18:52

        undef.de wrote:EDIT: But it would be nice to have!
        indeed :thumbsup:
        it would be nice to have the opacity on every control
          Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

          ManiaControl, FancyManiaLinks

          Post Reply

          Return to “ManiaLink”

          Who is online

          Users browsing this forum: No registered users and 0 guests