Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Use multiple progress bars with conditional Viewports
« previous next »
  • Print
Pages: [1] 2

Author Topic: Use multiple progress bars with conditional Viewports  (Read 4074 times)

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Use multiple progress bars with conditional Viewports
« on: July 09, 2008, 07:07:48 AM »
Correect me if i'm wrong, but the commit which changed the wps syntax also introduced the feature to display three different progress bars. Is there an example theme which does include this featrue? because i'm trying to incorporate that feature into a wps and whenever i try to load the third progressbar, i get an "Invalid parameter list" error...
here's the code by the way:

Code: [Select]
%Vl|a|0|161|206|23|1|-|-|
%pb|pb.bmp|18|-|206|23|
%Vl|b|0|213|206|23|1|-|-|
%pb|pb1.bmp|18|-|206|23|
%Vl|c|0|182|206|23|1|-|-|
%pb|pb2.bmp|18|-|206|23|

if i delete the last Viewport, everything works fine. I fear that only two pbs are supported...

Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Use multiple progress bars with conditional Viewports
« Reply #1 on: July 09, 2008, 07:49:02 AM »
I think your third viewport is overlapping the first.

161 + 23 = 184

*Conditional*, right.  That shouldn't matter.  Thinking cap back on.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Use multiple progress bars with conditional Viewports
« Reply #2 on: July 09, 2008, 10:38:45 AM »
it should work... how many other bitmaps are you loading?
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Use multiple progress bars with conditional Viewports
« Reply #3 on: July 09, 2008, 11:14:25 AM »
Wait a second.  Are you trying to display viewports 'a' and 'c' at the same time?  If so, I think it's logical that you'll get an error due to overlapping viewports.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Use multiple progress bars with conditional Viewports
« Reply #4 on: July 09, 2008, 11:50:07 AM »
I didn't think that overlapping viewports would lead to an error, just that the one defined later in the code would be drawn over the contents of the earlier one.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: Use multiple progress bars with conditional Viewports
« Reply #5 on: July 09, 2008, 11:53:08 AM »
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: [Select]
%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|
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Use multiple progress bars with conditional Viewports
« Reply #6 on: July 09, 2008, 12:19:58 PM »
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.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Use multiple progress bars with conditional Viewports
« Reply #7 on: July 09, 2008, 12:35:12 PM »
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.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: Use multiple progress bars with conditional Viewports
« Reply #8 on: July 09, 2008, 01:32:10 PM »
It's not working, no matter what i do. Look, even this code (yes that's the entire wps file) does not work:
Code: [Select]
%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|
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?
« Last Edit: July 09, 2008, 01:56:48 PM by BdN3504 »
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Use multiple progress bars with conditional Viewports
« Reply #9 on: July 09, 2008, 03:20:47 PM »
Quote from: BdN3504 on July 09, 2008, 01:32:10 PM
Code: [Select]
%V|0|10|-|23|-|-|-|
%pb|pb.bmp|17|-|206|23|

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 ?
Logged

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: Use multiple progress bars with conditional Viewports
« Reply #10 on: July 09, 2008, 03:39:46 PM »
Code: [Select]
%X|bg.bmp|
%Vl|a|18|10|206|23|-|-|-|
%pb|pb.bmp|0|0|206|23|
%Vl|c|18|100|206|23|-|-|-|
%pb|pb1.bmp|0|0|206|23|
%Vl|c|18|200|206|23|-|-|-|
%pb|pb2.bmp|0|0|206|23|
shit no worky worky! I've tried playing around with all possible variants of the parameters. this one works best, if you only use 2 pbs, but three still is not working!
Logged

Offline knight4led

  • Member
  • *
  • Posts: 87
Re: Use multiple progress bars with conditional Viewports
« Reply #11 on: July 09, 2008, 04:54:13 PM »
I was having trouble with multiple progress bars as well. Though different, I couldn't get a non .bmp progress bar to display at all on a .wps that already had a .bmp progress bar. I suspect something is a little broken in there.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Use multiple progress bars with conditional Viewports
« Reply #12 on: July 09, 2008, 04:58:09 PM »
If you're sure it's a bug, why haven't you filed a bug report?
Logged

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: Use multiple progress bars with conditional Viewports
« Reply #13 on: July 10, 2008, 05:51:21 AM »
First, i don't know how and where to file a bug report and second i wasn't sure if the commit really introduced support for 3 playbars or just two.
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Use multiple progress bars with conditional Viewports
« Reply #14 on: July 10, 2008, 05:58:38 AM »
Did you try 3 progressbars in the default viewport (i.e. not defining any %V at all)?

Quote from: BdN3504 on July 10, 2008, 05:51:21 AM
First, i don't know how and where to file a bug report
See the "bugs" entry in the left hand side of the menu below the "Tracker" headline...
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Use multiple progress bars with conditional Viewports
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.064 seconds with 15 queries.