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
| | |-+  Viewport's beating me up, please help.
« previous next »
  • Print
Pages: [1]

Author Topic: Viewport's beating me up, please help.  (Read 1299 times)

Offline Misspell

  • Member
  • *
  • Posts: 33
Viewport's beating me up, please help.
« on: July 02, 2011, 12:04:52 AM »
Trying to use %V(xxxxx) in a theme im making and its causing me problems (images below).
With-out viewports, the them theme displays fine, when using viewport's in the .wps file, the "Playing Now" screen default to something  other then my code, the other screens i checked seam to be fine.

While testing, im using rbthemeeditor & rockboxui, no errors are displayed in the editor. Also tried installing the theme to my iPod (5.5 stock) with RockBox 3.9 and get the same results displayed in the images below. rbthemeeditor & rockboxui are from the SVN, downloaded a couple days ago.

Can some one please point me in the right direction. I really like how you can fine tune the placement of things with viewports.

Also tried %Vl & %Vd, same results.

.cfg
Code: [Select]
#target: ipodvideo

sbs: /.rockbox/wps/Misspell.sbs
wps: /.rockbox/wps/Misspell.wps

backdrop: /.rockbox/backdrops/Misspell.bmp
font: /.rockbox/fonts/16-Adobe-Helvetica.fnt
#font: /.rockbox/fonts/19-Nimbus.fnt
foreground color: 000000
background color: B6C6E5
statusbar: custom
scrollbar: right
line selector start color: 045f8a
line selector end color: 00aeff
selector type: bar (gradient)
line selector text color: ffffff
iconset: /.rockbox/icons/tango_small.bmp
viewers iconset: /.rockbox/icons/tango_small_viewers.bmp
ui viewport: 5,35,210,160,-,-,-

.wps
Code: [Select]
%wd
%Fl(3,14-Nimbus.fnt,150)
%V(5,2,316,0,3)
%s%?in<%(%in%) |>%?it<%it|%fn>
#
%V(0,20,200,2,-)
%ac[%pp/%pe]  %?mp<Stop||Paused||> [%pc - %pt]
#
%Fl(4,16-Terminus-Bold.fnt,150)
%V(2,37,110,2,4)
%s%?ia<%ia|%?d(2)<%d(2)|N/A Artist>>
%s%?id<%id|%?d(1)<%d(1)|N/A Album>>
%V(2,67,200,2,-)
%al%?iy<%(%iy%)|>
%al%?ig<[%ig]|>
%al%fc %fbkBits %fv %?iv<%(id3v%iv%)|>
%al%?fs<%fs kB>  
%al%?ic<%s%ic>
#
%V(2,147,316,2,-)
%s%iC
#
# Album art
%V(176,0,316,2,-)
%Cl(0,0,150,150)
#%Cl(176,18,150,150)
%?C<%Cd|>
#
%V(2,175,316,2,-)
Next: %?Ig<[%Ig]|>  
%s%?Ia<  %Ia|%?d(2)<%d(2)|%(root%)>>
%?Iy<  %(%Iy%)|>%s%?Id< %Id|%?d(1)<%d(1)|%(root%)>>
%s%?It<  %It|%fn>
#
#%V(0,182,316,2,-)
#%ar(%bl%% -%bt)
#%ar%?lh<%(**%)  >Vol.%pv
#%ar%ca %cd %cH:%cM:%cS

.sbs
Code: [Select]
#%V(0,182,316,2,-)
%ar(%bl%% -%bt)
%arVol.%pv %?lh<HDD>
%ar%ca %cd %cH:%cM:%cS




[EDIT]
Spelling:  them theme

* theme_good.png (30.14 kB, 357x292 - viewed 157 times.)

* theme_bad.png (13.81 kB, 357x285 - viewed 138 times.)
« Last Edit: July 02, 2011, 12:15:46 AM by Misspell »
Logged
NOTE: iPod 5.5G - PC = Ubuntu (Lucid) OS
~ What was once an opinion, became a fact, to be later proven wrong ~

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Viewport's beating me up, please help.
« Reply #1 on: July 02, 2011, 11:28:26 AM »
if it works in the sim but not on target it probably means you are using too much of the skin buffer. check system > rockbox info > "skin buffer usage". you could try removing the font line and see if that helps. I cant see you loading images which is usually the buffer hog.
Logged


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

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: Viewport's beating me up, please help.
« Reply #2 on: July 02, 2011, 12:43:45 PM »
And also, after a quick .wps inspection:

- This viewport is exceeding the horizontal limits:

%V(5,2,316,0,3)
%s%?in<%(%in%) |>%?it<%it|%fn>

- There are some overlapping viewports. That's not crashing your WPS, but they can cause odd behavior (info vs. AA)

Hope this helps, checkwps might help you further
Logged

Offline Misspell

  • Member
  • *
  • Posts: 33
Re: Viewport's beating me up, please help.
« Reply #3 on: July 02, 2011, 03:47:15 PM »
Quote from: audio-i on July 02, 2011, 12:43:45 PM
- This viewport is exceeding the horizontal limits:
%V(5,2,316,0,3)
Thanks, that was the problem.

Quote from: audio-i on July 02, 2011, 12:43:45 PM
- There are some overlapping viewports. That's not crashing your WPS, but they can cause odd behavior (info vs. AA)
Now i see :)
I made a complete mess of Coordinates,  Height and Widths.... was alittle too tired, alittle too much copy/paste ;)

Thanks for the help, its starting to take shape now.

_
Logged
NOTE: iPod 5.5G - PC = Ubuntu (Lucid) OS
~ What was once an opinion, became a fact, to be later proven wrong ~

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Viewport's beating me up, please help.
 

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

Page created in 0.073 seconds with 15 queries.