Downloads
release
dev builds
extras
themes
Documentation
manual
wiki
device status
Support
forums
mailing lists
IRC
Development
bugs
patches
dev guide
Search
Donate
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Welcome to the Rockbox Technical Forums!
Rockbox Technical Forums
Support and General Use
Theming and Appearance Customization
Progress Bar Options - BACKDROP
« previous
next »
Print
Pages: [
1
]
Author
Topic: Progress Bar Options - BACKDROP (Read 1993 times)
RockBoxFan
Member
Posts: 55
Progress Bar Options - BACKDROP
«
on:
March 16, 2011, 09:32:52 AM »
Has anyone successfully used the BACKDROP option on a progress bar? I have been through the wiki and the manual, but I cannot seem to get this option to do anything.
I am trying to create a progress bar in color, with a grayed bar underneath, showing the bar's full length. Is that what this option is supposed to do? I see that most themes put the progress bar's backdrop right into the wps screen's backdrop, but I am trying to avoid doing that.
Any help would be appreciated.
Logged
[Saint]
Rockbox Expert
Member
Posts: 1662
Hayden Pearce
Re: Progress Bar Options - BACKDROP
«
Reply #1 on:
March 16, 2011, 02:29:21 PM »
Sure, happy to help here...
So, the syntax you want is:
"%<bar capable tag>(x,y,width,height,<filename_of_bar_image>.bmp,backdrop,<identifier_of_backdrop>)"
x, y, width, height, filename_of_bar_image, are all probably self explanatory. The next param, "backdrop", just tells the parser what to do with the next param it finds which needs to be the identifier of your backdrop image.
The identifier is what you %xl'ed it as:
%xl(identifier,<my_bar_backdrop_filename>.bmp,x,y)
example:
%V(0,0,100,10,-)
%xl(A,my_backdrop_image.bmp,0,0)
%pv(0,0,100,10,my_bar_image.bmp,backdrop,A)
If you need any more help, just ask...
[St.]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.
RockBoxFan
Member
Posts: 55
Re: Progress Bar Options - BACKDROP
«
Reply #2 on:
March 16, 2011, 04:09:31 PM »
Thanks for the reply. I have the syntax correct. This is what I am doing:
#
# Progress Bar
#
%V(4,90,168,7,-)
%xl(z,pbback.bmp,0,0)
%pb(0,0,168,7,pb.bmp,backdrop,z)
I get the progress bar, but it does not have a backdrop. Both pb.bmp and pbback.bmp are 168x7 bit maps. I am really stumped.
Logged
[Saint]
Rockbox Expert
Member
Posts: 1662
Hayden Pearce
Re: Progress Bar Options - BACKDROP
«
Reply #3 on:
March 17, 2011, 03:47:25 AM »
Interesting...
What is the target device?
Would you mind uploading the whole theme please? Images and all, in some form of compressed format (.7z, .zip, etc.), to somewhere like
DataFile Host
so that I might take a look at this myself?
This syntax works as expected on device (I use it in the themes for my Android handset and iPod Color) here.
[St.]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.
RockBoxFan
Member
Posts: 55
Re: Progress Bar Options - BACKDROP - SOLVED!!
«
Reply #4 on:
March 17, 2011, 08:32:49 AM »
The target is an iPod Nano 1G. Let me work on getting you the files.
In the meantime, I have stripped down the theme. It now consists of a .wps with the above pasted lines ONLY, a .cfg calling the .wps ONLY, and of course the two .bmp files.
Could this be a bug? It does not work in the simulator.
OK, so I updated the simulator, and it works now!
It also runs fine on the Nano 1G, Version 3.8.
It's always better when I solve my own problems, but thank you again for your help.
«
Last Edit: March 17, 2011, 11:04:42 AM by RockBoxFan
»
Logged
JdGordon
Member
Posts: 1817
Constantly breaking stuff
Re: Progress Bar Options - BACKDROP
«
Reply #5 on:
March 18, 2011, 12:07:17 AM »
which simulator builds are you using? the prebuilt ones hosted on rasher.dk? I'm not sure how often they are updated but not as often as svn builds so you need to be careful when new stuff is added
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.
RockBoxFan
Member
Posts: 55
Re: Progress Bar Options - BACKDROP
«
Reply #6 on:
March 18, 2011, 04:44:30 PM »
I am using the one from the link on the "extras" page. It seems to use the "current build" version, as the date on my updated simulator is March 17th. This may not be the best policy, as I understand that these versions may be buggy. Perhaps defaulting to the "recent release" version would be better. Apparently so. The one I am using now does not report the total track time correctly!
Any way, all is well on the Nano, but I did waste a lot of time trying to get it to work in the simulator. It never occurred to me to just try it on the actual device.
It's all good. I learned a lot in the process.
Logged
Print
Pages: [
1
]
« previous
next »
Rockbox Technical Forums
Support and General Use
Theming and Appearance Customization
Progress Bar Options - BACKDROP
SMF 2.0.17
|
SMF © 2019
,
Simple Machines
Rockbox Privacy Policy
XHTML
RSS
WAP2
Page created in 0.074 seconds with 15 queries.