Support and General Use > Theming and Appearance Customization

Help with updating wps

(1/1)

magnumforce2006:
Hi there. I haven't updated rockbox since April, and now my wps is totally broken. I realize that %PB has to be changed, but I'm not entirely sure what the parameters need to be. Also, %m is now taken out and needs to be changed to viewports? I'm not entirely sure how all of this works. Sorry for my incompetence  :-[


--- Code: ---# preloading images
%X|bg.bmp|
%P|pb.bmp|27|159|
# playback images
%xl|a|song_stop.bmp|6|163|
%xl|b|song_play.bmp|6|163|
%xl|c|song_pause.bmp|6|163|
%xl|d|ipod_battery0.bmp|282|6|
%xl|e|ipod_battery1.bmp|282|6|
%xl|f|ipod_battery2.bmp|282|6|
%xl|g|ipod_battery3.bmp|282|6|
%xl|h|ipod_battery4.bmp|282|6|
%xl|i|volume0.bmp|115|6|
%xl|j|volume1.bmp|115|6|
%xl|k|volume2.bmp|115|6|
%xl|l|volume3.bmp|115|6|
%xl|m|volume4.bmp|115|6|
%xl|n|volume5.bmp|115|6|
%xl|o|volume6.bmp|115|6|
%xl|p|volume7.bmp|115|6|
%xl|q|volume8.bmp|115|6|
%xl|r|volume9.bmp|115|6|
%xl|s|volume10.bmp|115|6|
%xl|t|hold.bmp|267|5|
%xl|u|rpt_on.bmp|294|155|
%xl|v|rpt_on1.bmp|294|155|
%xl|w|rpt_on_sh.bmp|294|155|
%xl|x|shf_on.bmp|278|154|
%xl|y|shf_off.bmp|278|154|
%xl|z|rpt_off.bmp|294|155|

# disable the status bar
%wd

    %in (%pp/%pe) %ar%cl:%cM

%?C<%m|112|%al%?ia<%ia|%?d2<%d2|(root)>>|%s%ac%?ia<%ia|%?d2<%d2|(root)>>>
%?C<%s%m|112|%al%?id<%id (%iy)|%?d1<%d1|(root)>>|%s%ac%?id<%id|%?d1<%d1|(root)>>>
%?C<%s%m|112|%al%?it<%it|%fn>|%s%ac%?it<%it|%fn>>


# progress bar : height, left position
%pb|26|27|

# current time, volume, time remaining
%m|5|%al  %pc %ac%pvdb %ar-%pr
     %It





%?bl<%xdd|%xde|%xdf|%xdg|%xdh>
%?pv<%xdi|%xdj|%xdk|%xdl|%xdm|%xdn|%xdo|%xdp|%xdq|%xdr|%xds>
%?mh<%xdt>
# choose if you want the repeat-off icon to show:
# %?mm<%xdz|%xdu|%xdv|%xdw|%xdu>
%?mm<|%xdu|%xdv|%xdw|%xdu>
# choose if you wan the shuffle-off icon to show:
# %?ps<%xdx|%xdy>
%?ps<%xdx>

%?mp<%xda|%xdb|%xdc|%xdb|%xdb>

# cover art
%Cl|7|55|100|100|
%C
--- End code ---

Any and all help is greatly appreciated.

Ste-:
Most of the info you require is available as a sticky at the top of the page.
or here http://forums.rockbox.org/index.php?topic=17507.0
that will help give you some pointers.

magnumforce2006:
Ok, I reworked the %P part of the equation so that the progressbar works, but now I'm still having issues. Here's what the wps looks like on the sim:



And here's the current wps code:


--- Code: ---# preloading images
%X|bg.bmp|
%pb|pb.bmp|27|162|293|26|
# playback images
%xl|a|song_stop.bmp|6|163|
%xl|b|song_play.bmp|6|163|
%xl|c|song_pause.bmp|6|163|
%xl|d|ipod_battery0.bmp|282|6|
%xl|e|ipod_battery1.bmp|282|6|
%xl|f|ipod_battery2.bmp|282|6|
%xl|g|ipod_battery3.bmp|282|6|
%xl|h|ipod_battery4.bmp|282|6|
%xl|i|volume0.bmp|115|6|
%xl|j|volume1.bmp|115|6|
%xl|k|volume2.bmp|115|6|
%xl|l|volume3.bmp|115|6|
%xl|m|volume4.bmp|115|6|
%xl|n|volume5.bmp|115|6|
%xl|o|volume6.bmp|115|6|
%xl|p|volume7.bmp|115|6|
%xl|q|volume8.bmp|115|6|
%xl|r|volume9.bmp|115|6|
%xl|s|volume10.bmp|115|6|
%xl|t|hold.bmp|267|5|
%xl|u|rpt_on.bmp|294|155|
%xl|v|rpt_on1.bmp|294|155|
%xl|w|rpt_on_sh.bmp|294|155|
%xl|x|shf_on.bmp|278|154|
%xl|y|shf_off.bmp|278|154|
%xl|z|rpt_off.bmp|294|155|

# disable the status bar
%wd

    %in (%pp/%pe) %ar%cl:%cM


%?C<%m|112|%al%?ia<%ia|%?d2<%d2|(root)>>|%s%ac%?ia<%ia|%?d2<%d2|(root)>>>
%?C<%s%m|112|%al%?id<%id (%iy)|%?d1<%d1|(root)>>|%s%ac%?id<%id|%?d1<%d1|(root)>>>
%?C<%s%m|112|%al%?it<%it|%fn>|%s%ac%?it<%it|%fn>>




# current time, volume, time remaining
%al  %pc %ac%pvdb %ar-%pr
     %It





%?bl<%xdd|%xde|%xdf|%xdg|%xdh>
%?pv<%xdi|%xdj|%xdk|%xdl|%xdm|%xdn|%xdo|%xdp|%xdq|%xdr|%xds>
%?mh<%xdt>
# choose if you want the repeat-off icon to show:
# %?mm<%xdz|%xdu|%xdv|%xdw|%xdu>
%?mm<|%xdu|%xdv|%xdw|%xdu>
# choose if you wan the shuffle-off icon to show:
# %?ps<%xdx|%xdy>
%?ps<%xdx>

%?mp<%xda|%xdb|%xdc|%xdb|%xdb>

# cover art
%Cl|7|55|100|100|
%C
--- End code ---

Clearly I'm having trouble with alignment, and i think I need to use the Viewports, correct? I'm just not sure how to go about doing that.

Ste-:
Yep you'll have to use viewports to align it properly to get rid of the old margin tag.
It's all in the custom wps page. on the wiki.

The format is
%V|x|y|height|weight|font|foreground colour|background colour|

Navigation

[0] Message Index

Go to full version