no declaration for attribute nbframes of element Bitmap

About usage, announcement and development of skins for VLC
tvtalkshowshigh
Blank Cone
Blank Cone
Posts: 95
Joined: 13 Jun 2005 12:36
Location: UK

no declaration for attribute nbframes of element Bitmap

Postby tvtalkshowshigh » 25 Mar 2006 09:36

no declaration for attribute nbframes of element Bitmap

that's the error i get when using the folling in my skin...

Code: Select all

<Bitmap id="playanim" file="playanim.png" alphacolor="#D6EAF9" nbframes="17" fps="17" />
if i then call that bitmap in the skin it just shows the entire image (frames stored vertically)

i'm using the nightly build vlc-0.8.5-test1-20060325-0000-win32. Is the animated bitmap function not fully implimented across all platforms yet?

thanks,

mark.

AsMaX
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 05 Mar 2004 09:00
Location: Antibes, France

Postby AsMaX » 25 Mar 2006 12:02

ooops the documentation is wrong, the attribute is "nbFrames", not "nbframes" ! But as this is inconsistent with other attributes, which are all in lower case, I ve just fixed that in the code, so in the next test release / nightly build it will be "nbframes" as it should.

tvtalkshowshigh
Blank Cone
Blank Cone
Posts: 95
Joined: 13 Jun 2005 12:36
Location: UK

Postby tvtalkshowshigh » 25 Mar 2006 12:22

thanks AsMax. i'll check that out tomorrow.

AsMaX
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 05 Mar 2004 09:00
Location: Antibes, France

Postby AsMaX » 25 Mar 2006 12:26

Ok, meanwhile you can still use "nbFrames" instead of "nbframes"

tvtalkshowshigh
Blank Cone
Blank Cone
Posts: 95
Joined: 13 Jun 2005 12:36
Location: UK

Postby tvtalkshowshigh » 25 Mar 2006 12:31

I just tried this...

Code: Select all

<Bitmap id="playanim" file="playanim.png" alphacolor="#D6EAF9" nbFrames="17" fps="17" /> <Image x="120" y="179" image="playanim" />

i didn't get any errors, but the image still shows as the entire bitmap rather than an animation.

AsMaX
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 05 Mar 2004 09:00
Location: Antibes, France

Postby AsMaX » 25 Mar 2006 13:04

Ahaaa... actually animated bitmaps are only supported for Buttons and Checkboxes, not yet Images. But at the moment you can emulate an image with a button with no action...


Return to “Skins”

Who is online

Users browsing this forum: No registered users and 90 guests