rockbox/manual/advanced_topics/viewports/mono-conditional.tex

14 lines
443 B
TeX
Raw Normal View History

\begin{example}
%?mh<%Vd(a)|%Vd(b)>
%Vl(a,10,10,50,50,-)
%sYou could now show a hold icon using the %%xl and %%xd tags.
%Vl(a,0,70,70,14,1)
%s%acYour DAP is locked.
%Vl(b,20,14,50,14,1)
%t(1)%acWarning:;%t(.1)
%Vl(b,20,30,50,50,0)
%sYou've unlocked your player.
\end{example}
This example checks for hold. Viewport `a' will be displayed if it is on,
otherwise viewport `b' will display a flashing warning.