rockbox/wps/cabbiev2.112x64x1.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

55 lines
1.3 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
%V(0,0,-,-,-)
%x(z,wpsbackdrop-112x64x1.bmp,0,0)
#
# Preload Images
%xl(A,lock-112x64x1.bmp,0,0,2)
%xl(B,battery-112x64x1.bmp,0,0,9)
%xl(C,volume-112x64x1.bmp,0,0,9)
%xl(D,shuffle-112x64x1.bmp,0,0)
%xl(E,repeat-112x64x1.bmp,0,0,4)
%xl(F,playmode-112x64x1.bmp,0,0,5)
#
# Progress Bar
%V(1,42,110,4,-)
%pb(0,0,-,4,pb-112x64x1.bmp)
#
# Hold
%V(4,56,28,8,-)
%?mh<%xd(Aa)|%xd(Ab)>
#
# Battery
%V(22,56,19,8,-)
%?bp<%?bc<%xd(Ba)|%xd(Bb)>|%?bl<|%xd(Bc)|%xd(Bd)|%xd(Be)|%xd(Bf)|%xd(Bg)|%xd(Bh)|%xd(Bi)>>
#
# Volume
%V(41,56,18,8,-)
%?pv<%xd(Ca)|%xd(Cb)|%xd(Cc)|%xd(Cd)|%xd(Ce)|%xd(Cf)|%xd(Cg)|%xd(Ch)|%xd(Ci)>
#
# Shuffle
%V(59,56,22,8,-)
%?ps<%xd(D)>
#
# Repeat
%V(81,56,17,8,-)
%?mm<|%xd(Ea)|%xd(Eb)|%xd(Ec)|%xd(Ed)>
#
# Playmode
%V(98,56,14,8,-)
%?mp<%xd(Fa)|%xd(Fb)|%xd(Fc)|%xd(Fd)|%xd(Fe)>
#
# Track Info
%V(0,8,-,35,-)
%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%)>>>
%t(5)%ac%s%?Fn<%Sx(Next:) %?It<%It|%Fn>|%ac%?Sr<%pe %Sx(of) %pp|%pp %Sx(of) %pe>>%;%t(5)%ac%s%?Fn<%Sx(Next:) %?Ia<%Ia|%?IA<%IA|%Fn>|%ac%?Sr<%pe %Sx(of) %pp|%pp %Sx(of) %pe>>>;%s%ac%t(1)%ft(.rockbox/playername.txt)
%V(0,48,-,8,-)
%pc%ar%pr