![Rockbox Archos Ondio 128 FM Скачать руководство пользователя страница 104](http://html1.mh-extra.com/html/rockbox/archos-ondio-128-fm/archos-ondio-128-fm_manual_1472527104.webp)
C
HAPTER
11. A
DVANCED
T
OPICS
104
of WPS files included in Rockbox, and you can load one of these at anytime by
selecting it in G
ENERAL
S
ETTINGS
→
D
ISPLAY
→
B
ROWSE
.
WPS FILES
.
Note:
“Playing” a
.wps
from the file browser has the same effect.
b
File Location:
Custom WPS files may be located anywhere on the drive. The only
restriction is that they must end in
.wps
. When you “play” a
.wps
file, it will
be used for future WPS screens, and if the “played”
.wps
file is located in the
/.rockbox/wps
directory, it will be remembered and used after reboot. The
.wps
filename must be no more than 24 characters long for it to be remembered.
11.2.2. WPS – Build Your Own
Quite simply, enter the WPS code in your favourite text editor, Notepad on Windows
works fine. When you save it, instead of saving it as a
.txt
file, save it as a
.wps
file. Example: Instead of
Rockbox.txt
, save the file as
Rockbox.wps
. To make sure
non english characters display correctly in your WPS you must save the .wps file with
UTF-8 character encoding. This can be done in most editors, for example Notepad in
Windows 2000 or XP (but not in 9x/ME) can do this. See appendix section
B
(page
114
)
for all the tags that are available.
•
All characters not preceded by % are displayed as typed.
•
Lines beginning with # are comments and will be ignored.
•
Maximum file size used is 1600 bytes. If you have a bigger WPS file, only the first
part of it will be loaded and used.
Note:
Keep in mind that your player resolution is 112x64x1 (with the last number giving
b
the colour depth in bits) when designing your own WPS, or if you use a WPS designed
for another target.
Conditional Tags
If/else:
Syntax:
%?xx
<
true
|
false
>
If the tag specified by “
xx
” has a value, the text between the “
<
” and the “
|
” is
displayed (the true part), else the text between the “
|
” and the “
>
” is displayed
(the false part). The else part is optional, so the “
|
” does not have to be specified
if no else part is desired. The conditionals nest, so the text in the if and else part
can contain all
%
commands, including conditionals.
Enumerations:
Syntax:
%?xx
<
alt1
|
alt2
|
alt3
|
...
|
else
>
For tags with multiple values, like Play status, the conditional can hold a list of
alternatives, one for each value the tag can have. Example enumeration:
E
XAMPLE
%?mp
<
Stop
|
%Play
|
Pause
|
Ffwd
|
Rew
>
T
HE
R
OCKBOX MANUAL
A
RCHOS
O
NDIO