1
0
Fork 0
forked from len0rd/rockbox

FS#11243 - The %VI (capital i) WPS tag is not described in the manual.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25987 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Alex Parker 2010-05-13 08:13:37 +00:00
parent 40782d5c5e
commit 6d549df28d
2 changed files with 25 additions and 0 deletions

View file

@ -283,6 +283,24 @@ with one \%Vd line.
\note{The tag to display conditional viewports must come before the tag to \note{The tag to display conditional viewports must come before the tag to
preload the viewport in the \fname{.wps} file.} preload the viewport in the \fname{.wps} file.}
\subsection{Info Viewport (SBS only)}
As mentioned above, it is possible to set a UI viewport via the theme
\fname{.cfg} file. It is also possible to set the UI viewport through the SBS
file, and to conditionally select different UI viewports.
\begin{itemize}
\item {\config{\%Vi{\textbar}'label'{\textbar}\dots{\textbar}}}
This viewport is used as Custom UI Viewport in the case that the theme
doesn't have a ui viewport set in the theme \fname{.cfg} file. Having this
is strongly recommended since it makes you able to use the SBS
with other themes. If label is set this viewport can be selectivly used as the
Info Viewport using the \%VI tag. The '\dots' parameters use the same logic as
the \config{\%V} tag explained above.
\item {\config{\%VI'label'}} Set the Info Viewport to use the viewport called
label, as declared with the previous tag.
\end{itemize}
} }
\subsubsection{Conditional Tags} \subsubsection{Conditional Tags}

View file

@ -54,6 +54,13 @@ show the information for the next song to be played.
\config{\%Vd'identifier'} & Display the `identifier' viewport. E.g. \config{\%Vd'identifier'} & Display the `identifier' viewport. E.g.
\config{\%?C{\textless}\%Vda{\textbar}\%Vdb{\textgreater}} \config{\%?C{\textless}\%Vda{\textbar}\%Vdb{\textgreater}}
will show viewport `a' if album art is found, and `b' if it isn't.\\ will show viewport `a' if album art is found, and `b' if it isn't.\\
\config{\%Vi{\textbar}'label'{\textbar}\dots{\textbar}} &
Declare a Custom UI Viewport. The '\dots' parameters use the same logic as
the \config{\%V} tag explained above. See section \ref{ref:Viewports}.\\
\config{\%VI'label'} & Set the Info Viewport to use the viewport called
label, as declared with the previous tag.\\
\end{tagmap} \end{tagmap}
} }