Resistor calculator: simplify layout code, add scrolling, and handle error cases
[kugel-rb.git] / wps / cabbiev2.160x128x16.wps
blob7255b3594688d36a9e546c97b22b63e5e2fc442d
1 # Cabbie 2.0 default
2 # (C) 2007, Johannes Voggenthaler (Zinc Alloy)
3 # Derived from "cabbie" (C) Yohann Misquitta
5 # Disable Status Bar
6 %wd
8 # Load Backdrop
9 %X(wpsbackdrop-160x128x16.bmp)
11 # Preload Images
12 %xl(A,lock-160x128x16.bmp,0,0,2)
13 %xl(B,battery-160x128x16.bmp,0,0,10)
14 %xl(C,volume-160x128x16.bmp,0,0,10)
15 %xl(D,shuffle-160x128x16.bmp,0,0)
16 %xl(E,repeat-160x128x16.bmp,0,0,4)
17 %xl(F,playmode-160x128x16.bmp,0,0,5)
19 # Album Art/Info Viewport Conditional
20 %?C<%Vd(a)|%Vd(b)>
22 # Progress Bar
23 %V(6,86,149,8,-)
24 %pb(0,0,149,8,pb-160x128x16.bmp)
26 # Hold
27 %V(48,114,13,10,-)
28 %?mh<%xd(Aa)|%xd(Ab)>
30 # Battery
31 %V(66,115,25,13,-)
32 %?bp<%?bc<%xd(Ba)|%xd(Bb)>|%?bl<|%xd(Bc)|%xd(Bd)|%xd(Be)|%xd(Bf)|%xd(Bg)|%xd(Bh)|%xd(Bi)|%xd(Bj)>>
34 # Volume
35 %V(86,115,19,13,-)
36 %?pv<%xd(Ca)|%xd(Cb)|%xd(Cc)|%xd(Cd)|%xd(Ce)|%xd(Cf)|%xd(Cg)|%xd(Ch)|%xd(Ci)|%xd(Cj)>
38 # Shuffle
39 %V(104,116,15,8,-)
40 %?ps<%xd(D)>
42 # Repeat
43 %V(125,112,11,15,-)
44 %?mm<|%xd(Ea)|%xd(Eb)|%xd(Ec)|%xd(Ed)>
46 # Playmode
47 %V(142,114,10,11,-)
48 %?mp<%xd(Fa)|%xd(Fb)|%xd(Fc)|%xd(Fd)|%xd(Fe)>
50 # Time Elapsed/Remaining
51 %V(6,96,149,10,-)
52 %al%pc%ac%?Sr<%pe %Sx(of) %pp|%pp %Sx(of) %pe>%ar%pr
54 # Album Art
55 %ax%Vl(a,7,16,65,65,-)
56 %Cl(0,0,65,65,c,c)
57 %Cd
59 # Track Info - Album Art
60 %ax%Vl(a,77,10,-,75,-)
61 %s%al%?it<%it|%fn>
62 %s%al%?ia<%ia|%?d(2)<%d(2)|%(root%)>>
63 %s%al%?id<%id|%?d(1)<%d(1)|%(root%)>>
65 %Sx(Next Track:)
66 %s%?It<%It|%Fn>
68 # Track Info - No Album Art
69 %Vl(b,0,10,-,75,-)
70 %s%ac%?it<%it|%fn>
71 %s%ac%?ia<%ia|%?d(2)<%d(2)|%(root%)>>
72 %s%ac%?id<%id|%?d(1)<%d(1)|%(root%)>>
74 %Sx(Next Track:)
75 %s%?It<%It|%Fn>