Page 1 of 1

no declaration for attribute nbframes of element Bitmap

Posted: 25 Mar 2006 09:36
by tvtalkshowshigh
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.

Posted: 25 Mar 2006 12:02
by AsMaX
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.

Posted: 25 Mar 2006 12:22
by tvtalkshowshigh
thanks AsMax. i'll check that out tomorrow.

Posted: 25 Mar 2006 12:26
by AsMaX
Ok, meanwhile you can still use "nbFrames" instead of "nbframes"

Posted: 25 Mar 2006 12:31
by tvtalkshowshigh
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.

Posted: 25 Mar 2006 13:04
by AsMaX
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...