[Fixed] Styles not applied correctly to Quads

Talk about ManiaLink development in this forum

Moderator: NADEO

Post Reply
User avatar
m4rcel
Posts: 650
Joined: 15 Jun 2010, 11:12
Contact:

[Fixed] Styles not applied correctly to Quads

Post 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 1379 times
Which quads are displayed correctly seems to be random, refrshing the ManiaLink will show different result.
ImageImage
Image
User avatar
Electron
Posts: 797
Joined: 15 Jun 2010, 18:02
Contact:

Re: [Bug] Styles not applied correctly to Quads

Post 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.
Last edited by Electron on 23 Dec 2014, 20:19, edited 1 time in total.
User avatar
m4rcel
Posts: 650
Joined: 15 Jun 2010, 11:12
Contact:

Re: [Bug] Styles not applied correctly to Quads

Post 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 :)
ImageImage
Image
User avatar
noyranea
Nadeo
Nadeo
Posts: 187
Joined: 29 Apr 2014, 14:50
Location: Paris, France

Re: [Bug] Styles not applied correctly to Quads

Post 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
User avatar
noyranea
Nadeo
Nadeo
Posts: 187
Joined: 29 Apr 2014, 14:50
Location: Paris, France

Re: [Bug] Styles not applied correctly to Quads

Post 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
Post Reply

Return to “ManiaLink”

Who is online

Users browsing this forum: No registered users and 1 guest