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
| | |-+  Help with updating wps
« previous next »
  • Print
Pages: [1]

Author Topic: Help with updating wps  (Read 1186 times)

Offline magnumforce2006

  • Member
  • *
  • Posts: 46
Help with updating wps
« on: July 30, 2008, 01:58:09 AM »
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: [Select]
# 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

Any and all help is greatly appreciated.
Logged

Offline Ste-

  • Member
  • *
  • Posts: 76
Re: Help with updating wps
« Reply #1 on: July 30, 2008, 04:38:54 AM »
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.
Logged
Current Rocbox Devices: iAudio X5 240GB, Toshiba Gigabeat S240, iPod Classic 160GB, iPod Mini 2nd Gen 64GB, iRiver H360, Toshiba Gigabeat F40, iPod Video 30GB, Sansa e280v2, Sansa Fuzev2 8GB, Sansa Clip+ 8GB, Sansa Clip Zip 8GB, Sansa Fuze+ 4GB

Offline magnumforce2006

  • Member
  • *
  • Posts: 46
Re: Help with updating wps
« Reply #2 on: July 30, 2008, 04:56:14 AM »
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: [Select]
# 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

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

Offline Ste-

  • Member
  • *
  • Posts: 76
Re: Help with updating wps
« Reply #3 on: July 30, 2008, 09:00:09 AM »
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|

Logged
Current Rocbox Devices: iAudio X5 240GB, Toshiba Gigabeat S240, iPod Classic 160GB, iPod Mini 2nd Gen 64GB, iRiver H360, Toshiba Gigabeat F40, iPod Video 30GB, Sansa e280v2, Sansa Fuzev2 8GB, Sansa Clip+ 8GB, Sansa Clip Zip 8GB, Sansa Fuze+ 4GB

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Help with updating wps
 

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

Page created in 0.06 seconds with 15 queries.