rockbox/wps/cabbiev2.160x128x2.wps
William Wilgus 62b5dfd81d [Feature] Skin engine Themes grab text from a file %ft(file, line) WIP
allow the skin engine to read text files and return a particular line

you then can use ss on that string to allow display of strings from the file
(Playername comes to mind)

able to be used as conditional
%?ft(filename)<Found|Not Found>

if (selected) line of file is empty the tag is treated as #COMMENT

scroll timeouts now persist thru trackchange

bugfix:
%t(n)%?x<text|text>
would ignore the specified timeout defaulting to 2 seconds

playername.txt generated at boot if it doesn't exist contents: 'RockBox!'

Change-Id: I961910e01be052ef902f77e6d92fc3e367ffe9d0
2024-12-07 13:21:21 -05:00

75 lines
1.6 KiB
Text

# Cabbie v2.0
# (C) 2007-2012 The Authors (see /rockbox/wps/AUTHORS)
# Derived from "cabbie" (C) Yohann Misquitta
#
# Disable Status Bar
%wd
#
# Load Backdrop
%X(wpsbackdrop-160x128x2.bmp)
#
# Preload Images
%xl(A,lock-160x128x2.bmp,0,0,2)
%xl(B,battery-160x128x2.bmp,0,0,10)
%xl(C,volume-160x128x2.bmp,0,0,10)
%xl(D,shuffle-160x128x2.bmp,0,0)
%xl(E,repeat-160x128x2.bmp,0,0,4)
%xl(F,playmode-160x128x2.bmp,0,0,5)
#
# Album Art/Info Viewport Conditional
%?C<%Vd(a)|%Vd(b)>
#
# Progress Bar
%V(1,86,158,8,-)
%pb(0,0,158,8,pb-160x128x2.bmp)
#
# Hold
%V(48,114,14,11,-)
%?mh<%xd(Aa)|%xd(Ab)>
#
# Battery
%V(66,115,17,10,-)
%?bp<%?bc<%xd(Ba)|%xd(Bb)>|%?bl<|%xd(Bc)|%xd(Bd)|%xd(Be)|%xd(Bf)|%xd(Bg)|%xd(Bh)|%xd(Bi)|%xd(Bj)>>
#
# Volume
%V(87,114,16,11,-)
%?pv<%xd(Ca)|%xd(Cb)|%xd(Cc)|%xd(Cd)|%xd(Ce)|%xd(Cf)|%xd(Cg)|%xd(Ch)|%xd(Ci)|%xd(Cj)>
#
%V(107,115,16,9,-)
# Shuffle
%?ps<%xd(D)>
#
%V(127,113,12,13,-)
# Repeat
%?mm<|%xd(Ea)|%xd(Eb)|%xd(Ec)|%xd(Ed)>
#
%V(145,114,11,11,-)
# Playmode
%?mp<%xd(Fa)|%xd(Fb)|%xd(Fc)|%xd(Fd)|%xd(Fe)>
#
# Time Elapsed/Remaining
%V(1,96,158,10,1)
%al%pc%ac%?Sr<%pe %Sx(of) %pp|%pp %Sx(of) %pe>%ar%pr
#
# Album Art
%ax%Vl(a,2,16,64,64,-)
%Cl(0,0,64,64,c,c)
%Cd
#
# Track Info - Album Art
%ax%Vl(a,70,10,-,75,-)
%s%al%?id<%id|%?d(1)<%d(1)|%(root%)>>
%s%al%?it<%it|%fn>
%s%al%?ia<%ia|%?iA<%iA|%?d(2)<%d(2)|%(root%)>>>
%s%t(300)%al%Sx(Next Track:);%s%al%t(1)%ft(.rockbox/playername.txt)
%s%al%?It<%It|%Fn>
#
# Track Info - No Album Art
%Vl(b,0,10,-,75,-)
%s%ac%?id<%id|%?d(1)<%d(1)|%(root%)>>
%s%ac%?it<%it|%fn>
%s%ac%?ia<%ia|%?iA<%iA|%?d(2)<%d(2)|%(root%)>>>
%ac%t(300)%Sx(Next Track:);%ac%t(1)%ft(.rockbox/playername.txt)
%s%ac%?It<%It|%Fn>