Page 1 of 2

recent additions

Posted: 25 Apr 2013, 10:55
by xbx
(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)

Re: recent additions

Posted: 25 Apr 2013, 11:18
by Jojo_44
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

Re: recent additions

Posted: 25 Apr 2013, 13:23
by steeffeen
i would rather like seeing this fixed first, after all it's the manialink forum :D
http://forum.maniaplanet.com/viewtopic. ... 68&t=17508

Re: recent additions

Posted: 25 Apr 2013, 13:26
by spaii
Agree with Jojo_44 and steeffeen posts :thumbsup:

First one is nice :thumbsup: :clap:

Re: recent additions

Posted: 25 Apr 2013, 14:26
by TGYoshi
Very cool additions.

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

Re: recent additions

Posted: 25 Apr 2013, 14:37
by steeffeen
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:

Re: recent additions

Posted: 05 May 2013, 18:45
by undef.de
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?

Re: recent additions

Posted: 05 May 2013, 18:46
by steeffeen
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"/>

Re: recent additions

Posted: 05 May 2013, 18:50
by undef.de
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!

Re: recent additions

Posted: 05 May 2013, 18:52
by steeffeen
undef.de wrote:EDIT: But it would be nice to have!
indeed :thumbsup:
it would be nice to have the opacity on every control