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

62 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
#
# Preload Images
%xl(A,lock-128x64x1.bmp,0,0,2)
%xl(B,battery-128x64x1.bmp,0,0,9)
%xl(C,volume-128x64x1.bmp,0,0,9)
%xl(D,shuffle-128x64x1.bmp,0,1)
%xl(E,repeat-128x64x1.bmp,0,0,4)
%xl(F,playmode-128x64x1.bmp,0,0,5)
%xl(b,bar-128x64x1.bmp,2,0)
#
# Progress Bar
%V(0,0,128,6,1)
%x(a,pbbackground-128x64x1.bmp,1,0)
%pb(2,1,123,4,pb-128x64x1.bmp)
#
# Separator Bar
%V(2,52,124,1,1)
%xd(b)
#
# Hold
%V(3,56,20,8,1)
%?mh<%xd(Aa)|%xd(Ab)>
#
# Battery
%V(25,56,23,8,1)
%?bp<%?bc<%xd(Ba)|%xd(Bb)>|%?bl<|%xd(Bc)|%xd(Bd)|%xd(Be)|%xd(Bf)|%xd(Bg)|%xd(Bh)|%xd(Bi)>>
#
# Volume
%V(48,56,21,8,1)
%?pv<%xd(Ca)|%xd(Cb)|%xd(Cc)|%xd(Cd)|%xd(Ce)|%xd(Cf)|%xd(Cg)|%xd(Ch)|%xd(Ci)>
#
# Shuffle
%V(69,56,26,8,1)
%?ps<%xd(D)>
#
# Repeat
%V(95,56,20,8,1)
%?mm<|%xd(Ea)|%xd(Eb)|%xd(Ec)|%xd(Ed)>
#
# Playmode
%V(115,56,13,8,1)
%?mp<%xd(Fa)|%xd(Fb)|%xd(Fc)|%xd(Fd)|%xd(Fe)>
#
# Time Elapsed/Remaining
%V(0,8,128,8,1)
%?Sr<%pe %Sx(of) %pp|%pp %Sx(of) %pe>%ar%pc
#
# Current Track Info
%V(0,16,128,24,1)
%ac%s%?id<%id|%?d(1)<%d(1)|%(root%)>>
%ac%s%?it<%it|%fn>
%ac%s%?ia<%ia|%?iA<%iA|%?d(2)<%d(2)|%(root%)>>>
#
# Next Track Info
%V(0,42,128,8,1)
%ac%t(300)%s%Sx(Next:) %?It<%It|%Fn>;%s%ac%t(1)%ft(.rockbox/playername.txt)