Support and General Use > Theming and Appearance Customization

Use multiple progress bars with conditional Viewports

<< < (2/5) > >>

BdN3504:
does it matter, how many images i have loaded? But i tried removing all the images and it still doesn't work, so i don't think that is the problem...

here's how i want to display the VPs

--- Code: ---%Cl|52|44|c136|c136|
%?C<%?mh<%Vda|%C%Vdc>|%?mh<%Vda|%Vdb>>
%Vl|a|0|161|-|23|-|-|-|
%pb|pb.bmp|17|-|206|23|
%Vl|b|0|213|-|23|-|-|-|
%pb|pb.bmp|17|-|206|23|
%Vl|c|0|193|-|23|-|-|-|
%pb|pb.bmp|17|-|206|23|
--- End code ---

MarcGuay:
There is a limit to the total size of the images used, it's mentionned on the CustomWPS wiki page.

I suggest you verify that you have no overlapping viewports.  Maybe it's changed since they became conditional but it would definitely break the WPS before if they did.

Also, would it be possible for you to change your avatar?  It's very obnoxious to the eyes and I'm tempted to ignore your posts because of it.

Chronon:
I think it has changed.  The CustomWPS page indicates that viewports do not get drawn transparently, but indicates that they can be drawn over each other.  In fact, I modified a theme that was not displaying any text (because it was in the default viewport with other viewports defined) and I fixed the problem by defining a new viewport that fills the entire screen.  The theme already has several non-overlapping viewports and these now get drawn over the viewport that I defined that contains album art and text.

BdN3504:
It's not working, no matter what i do. Look, even this code (yes that's the entire wps file) does not work:

--- Code: ---%X|bg.bmp|

%V|0|10|-|23|-|-|-|
%pb|pb.bmp|17|-|206|23|
%V|0|100|-|23|-|-|-|
%pb|pb1.bmp|17|-|206|23|
%V|0|200|-|23|-|-|-|
%pb|pb2.bmp|17|-|206|23|
--- End code ---
There aren't even any conditionals in that one and there's no way these viewports overlap. This is not good. somebody may review the changes done to the wpssyntax. Or you anounce that only two playbars can be used per WPS.

Is this a cul-de sac? the only way to get around this would be to create to different themes, right?

pixelma:

--- Quote from: BdN3504 on July 09, 2008, 01:32:10 PM ---
--- Code: ---%V|0|10|-|23|-|-|-|
%pb|pb.bmp|17|-|206|23|

--- End code ---

--- End quote ---

I'm not entirely sure this is happening here and haven't tried myself yet but: the possibility to leave the y-position unspecified and use the - instead was a concession, made to let the non-bitmapped progressbar work as before. This means that if you leave it "blank" the progressbar should be put in the middle of the line as specified by the line of text in the .wps file, so wouldn't mean "zero".

Now that you specify a progressbar height of 23 there this way in a viewport that is only 23 pixels high itself and probably with a font less tall than 23 pixels, I can imagine two possible problems: (1) what happens with those "line based" progressbars when the height is greater than the font size and (2) if Rockbox tries what I would expect and put the middle of the progressbar on the middle of the first line of text this would mean the progressbar would cross the viewport's border - what happens in general when a progressbar is bigger than the viewport it is supposed to be in?

Hope that makes sense...  and it leads me to the question: have you tried specifying the y-position of the progressbar as 0 ?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version