Support and General Use > Theming and Appearance Customization
Viewport's beating me up, please help.
(1/1)
Misspell:
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: ---#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,-,-,-
--- End code ---
.wps
--- Code: ---%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
--- End code ---
.sbs
--- Code: ---#%V(0,182,316,2,-)
%ar(%bl%% -%bt)
%arVol.%pv %?lh<HDD>
%ar%ca %cd %cH:%cM:%cS
--- End code ---
[EDIT]
Spelling: them theme
JdGordon:
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.
audio-i:
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
Misspell:
--- 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)
--- End quote ---
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)
--- End quote ---
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.
_
Navigation
[0] Message Index
Go to full version