Page 1 of 1

[Fixed] Styles not applied correctly to Quads

Posted: 23 Dec 2014, 18:32
by m4rcel
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 :D

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>
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.
NotTheSpecifiedStyle.jpg
NotTheSpecifiedStyle.jpg (8.82 KiB) Viewed 1381 times
Which quads are displayed correctly seems to be random, refrshing the ManiaLink will show different result.

Re: [Bug] Styles not applied correctly to Quads

Posted: 23 Dec 2014, 19:05
by Electron
The behavior doesn't make any sense but equates the documentation:
noyranea wrote:- quads having a stylesheet style with "bgcolor" and no "style"/"image" attribute are blue...
Mr. noyranea, please fix this.

Re: [Bug] Styles not applied correctly to Quads

Posted: 23 Dec 2014, 20:18
by m4rcel
Electron wrote:The behavior doesn't make any sense but equates the documentation:
noyranea wrote:- quads having a stylesheet style with "bgcolor" and no "style"/"image" attribute are blue...
Oh, didn't saw this when I read the post. Definitely "good to know" (and very un-intuitive). Thanks :)

Re: [Bug] Styles not applied correctly to Quads

Posted: 29 Dec 2014, 09:15
by noyranea
Hello !

The dark blue colored quads bug is a bug we were aware of when we released the update, but of which the root cause remains unknow (mainly because we cannot reproduce this bug while debugging). So yes, it doesn't make sense and shouldn't event happen in the best of worlds.

Since you're annoyed by this behavior, I'll have a look at it when I got the time.

Have a nice day (holiday ?) and a happy new year !

-- noyranea

Re: [Bug] Styles not applied correctly to Quads

Posted: 18 Mar 2015, 11:41
by noyranea
Hi again !

The dark blue colored quads bug has just been fixed ! Your styles should be applied correctly to all your quads when the fix is updated.

Sorry for the inconvenience, have a nice day :)

-- noyranea