Support and General Use > Theming and Appearance Customization

Starry Eyed Surprise - need help fixing theme

(1/3) > >>

Slothsin:
This is what I changed the code to:


--- Code: ---%X|BG2.bmp|
%x|a|song.bmp|0|114|
%x|b|artist.bmp|0|127|
%x|c|album.bmp|0|140|
%xl|d|stop.bmp|265|163|
%xl|e|play.bmp|265|163|
%xl|f|pause.bmp|265|163|
%xl|g|ff.bmp|265|163|
%xl|h|rw.bmp|265|163|
%xl|i|rptnone.bmp|15|0|
%xl|j|rptall.bmp|15|0|
%xl|k|rptone.bmp|15|0|
%xl|l|rptshuf.bmp|15|0|
%xl|m|rptab.bmp|15|0|
%xl|n|hold.bmp|30|0|
%xl|o|none.bmp|30|0|
%xl|p|disk.bmp|45|0|
%xl|q|none.bmp|45|0|
%xl|r|battery.bmp|280|0|
%xl|s|volume.bmp|280|12|
%xl|t|vol0.bmp|225|114|
%xl|u|vol1.bmp|225|114|
%xl|v|vol2.bmp|225|114|
%xl|w|vol3.bmp|225|114|
%xl|x|vol4.bmp|225|114|
%xl|y|vol5.bmp|225|114|
%xl|z|vol6.bmp|225|114|
%xl|A|vol7.bmp|225|114|
%xl|B|vol8.bmp|225|114|
%xl|C|batt1.bmp|290|0|
%xl|D|batt2.bmp|290|0|
%xl|E|batt3.bmp|290|0|
%xl|F|batt4.bmp|290|0|
%xl|G|batt5.bmp|290|0|
%?mp<%xdd|%xde|%xdf|%xdg|%xdh>%?mm<%xdi|%xdj|%xdk|%xdl|%xdm>%?mh<%xdn|%xdo>%?lh<%xdp|%xdq>%ac%ar%bl
%V|290|320|-|-|1|-|-|%pv






%s%V|16|140|-|-|1|-|-|%?it<%it|%?fn<%fn|Unknown Title>>
%s%V|16|140|-|-|1|-|-|%?ia<%ia|%?d2<%d2|Unknown Artist>>
%s%V|16|140|-|-|1|-|-|%?id<%id|%?d1<%d1|Unknown Album>>
%pb|progress.bmp|6|2|140|-|
%V|0|320|-|-|1|-|-| %pc%ar%pr                                                           
%s|0|140|  Next:;  %t5%?It<%It|%Fn>;   %t3%?Ia<%Ia|%?D2<%D2|Unknown Artist>>;   %t3%?Id<%Ia|%?D1<%D1|Unknown Album>>

%V|0|320|-|-|1|-|-|%ac___________________________________
%V|0|320|-|-|1|-|-|%ac%cl:%cM %cp %ca, %cb %cd, %cY
%?pv<%xdt|%xdu|%xdv|%xdw|%xdx|%xdy|%xdz|%xdA|%xdB>
%?bl<%xdC|%xdE|%xdF|%xdG>
%C
%Cl|5|2|100|100|

--- End code ---
The main changes, like everyone has mentioned, I removed %p and changed the %pb syntax accordingly. I've replaced %m with %V...however, it's still not working properly. Maybe I'm misunderstanding the viewport code.

Any help would be appreciated.

JdGordon:
a few things that are immediatly noticable as wrong...
1) you cant put anything at the end of the %V line, it will be ignored
2)viewports are used to say "put the following text into this rectangle... and keep it in this rectangle untill a new viewport is defined
so it should be
%V|16|140|-|-|1|-|-|
%s%?it<%it|%?fn<%fn|Unknown Title>>
%s%?ia<%ia|%?d2<%d2|Unknown Artist>>
etc...

3)reread the viewport info on the CustomWPS wiki page.... the first 2 numbers are the x and y pixel value... you have 0,320 which would use the bottom pixel row  (and would actually have no room to draw anything)

4) %Cl is usually put at the beginning of the WPS (although i doubt that would matter much)

Slothsin:
Ok, I tried what you said, although I don't exactly understand how to choose the location:

%wd
%X|BG2.bmp|
%x|a|song.bmp|0|114|
%x|b|artist.bmp|0|127|
%x|c|album.bmp|0|140|
%xl|d|stop.bmp|265|163|
%xl|e|play.bmp|265|163|
%xl|f|pause.bmp|265|163|
%xl|g|ff.bmp|265|163|
%xl|h|rw.bmp|265|163|
%xl|i|rptnone.bmp|15|0|
%xl|j|rptall.bmp|15|0|
%xl|k|rptone.bmp|15|0|
%xl|l|rptshuf.bmp|15|0|
%xl|m|rptab.bmp|15|0|
%xl|n|hold.bmp|30|0|
%xl|o|none.bmp|30|0|
%xl|p|disk.bmp|45|0|
%xl|q|none.bmp|45|0|
%xl|r|battery.bmp|280|0|
%xl|s|volume.bmp|280|12|
%xl|t|vol0.bmp|225|114|
%xl|u|vol1.bmp|225|114|
%xl|v|vol2.bmp|225|114|
%xl|w|vol3.bmp|225|114|
%xl|x|vol4.bmp|225|114|
%xl|y|vol5.bmp|225|114|
%xl|z|vol6.bmp|225|114|
%xl|A|vol7.bmp|225|114|
%xl|B|vol8.bmp|225|114|
%xl|C|batt1.bmp|290|0|
%xl|D|batt2.bmp|290|0|
%xl|E|batt3.bmp|290|0|
%xl|F|batt4.bmp|290|0|
%xl|G|batt5.bmp|290|0|
%?mp<%xdd|%xde|%xdf|%xdg|%xdh>%?mm<%xdi|%xdj|%xdk|%xdl|%xdm>%?mh<%xdn|%xdo>%?lh<%xdp|%xdq>%ac%ar%bl
%V|290|320|-|-|1|-|-|
%pv






%V|16|140|-|-|1|-|-|
%s%?it<%it|%?fn<%fn|Unknown Title>>
%s%?ia<%ia|%?d2<%d2|Unknown Artist>>
%s%?id<%id|%?d1<%d1|Unknown Album>>
%pb|progress.bmp|6|2|140|-|
%V|0|320|-|-|1|-|-|
%pc%ar%pr                                                           
%s|0|140|  Next:;  %t5%?It<%It|%Fn>;   %t3%?Ia<%Ia|%?D2<%D2|Unknown Artist>>;   %t3%?Id<%Ia|%?D1<%D1|Unknown Album>>

%V|0|320|-|-|1|-|-|
%ac___________________________________
%V|0|320|-|-|1|-|-|
%ac%cl:%cM %cp %ca, %cb %cd, %cY
%?pv<%xdt|%xdu|%xdv|%xdw|%xdx|%xdy|%xdz|%xdA|%xdB>
%?bl<%xdC|%xdE|%xdF|%xdG>
%C
%Cl|5|2|100|100|

JdGordon:
choose what location? and whats the problem your having?

PaulJam:
Hi,

if you have trouble finding the correct coordinates and dimensions for the viewports, you can find them out easily using the simple paint program that comes with Windows:

Load the backdrop image or a screendump of the WPS in paint and then use the selection tool to mark the area where the viewport should be. As long as you keep the left mouse button pressed you see the correct numbers (already in the correct order) in the status bar.

So in the attached example the viewport definition for the selected area would be:
%V|5|12|210|37|1|-|-|

Navigation

[0] Message Index

[#] Next page

Go to full version