[Fixed] Styles not applied correctly to Quads
Posted: 23 Dec 2014, 18:32
So I took the time to look into the new Manialink Version 2 thing, and especially experimented with the new style feature, which sounds very nice -- If it works as expected 
Description
When applying a style to a Quad, it seems to get not correctly applied unless the either image or style/substyle are specified as attributes. Especially when using bgcolor, the style is not applied correctly.
Example ManiaLink:
Expected behavior:
All nine quads have a half transparent white color as background.
Actual behavior:
A random number of quads have the style correctly applied. All other quads appear in a dark blue. Which quads are displayed correctly seems to be random, refrshing the ManiaLink will show different result.

Description
When applying a style to a Quad, it seems to get not correctly applied unless the either image or style/substyle are specified as attributes. Especially when using bgcolor, the style is not applied correctly.
Example ManiaLink:
Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<manialink version="2" background="title" navigable3d="0">
<timeout>0</timeout>
<stylesheet>
<style class="styleQuad" sizen="10 10" bgcolor="FFF8" />
</stylesheet>
<quad posn=" 15 15" class="styleQuad" />
<quad posn=" 0 15" class="styleQuad" />
<quad posn="-15 15" class="styleQuad" />
<quad posn=" 15 0" class="styleQuad" />
<quad posn=" 0 0" class="styleQuad" />
<quad posn="-15 0" class="styleQuad" />
<quad posn=" 15 -15" class="styleQuad" />
<quad posn=" 0 -15" class="styleQuad" />
<quad posn="-15 -15" class="styleQuad" />
</manialink>
All nine quads have a half transparent white color as background.
Actual behavior:
A random number of quads have the style correctly applied. All other quads appear in a dark blue. Which quads are displayed correctly seems to be random, refrshing the ManiaLink will show different result.