summaryrefslogtreecommitdiff
path: root/manual/appendix/wps_tags.tex
diff options
context:
space:
mode:
Diffstat (limited to 'manual/appendix/wps_tags.tex')
-rw-r--r--manual/appendix/wps_tags.tex91
1 files changed, 44 insertions, 47 deletions
diff --git a/manual/appendix/wps_tags.tex b/manual/appendix/wps_tags.tex
index 1aec7bae99..1a0661c008 100644
--- a/manual/appendix/wps_tags.tex
+++ b/manual/appendix/wps_tags.tex
@@ -53,61 +53,58 @@ conditionals to show alternate information in preference to assuming.
53These tags, when written with a capital ``I'' (e.g. \config{\%Ia} or \config{\%Ic}), 53These tags, when written with a capital ``I'' (e.g. \config{\%Ia} or \config{\%Ic}),
54show the information for the next song to be played. 54show the information for the next song to be played.
55 55
56\nopt{lcd_charcell}{ 56\section{Viewports}
57 \section{Viewports} 57 \begin{tagmap}
58 \begin{tagmap} 58 \nopt{lcd_non-mono}{%
59 \nopt{lcd_non-mono}{% 59 \config{\%V(x,y,[width],\tabnlindent[height],[font])}
60 \config{\%V(x,y,[width],\tabnlindent[height],[font])} 60 & See section \ref{ref:Viewports}\\}
61 & See section \ref{ref:Viewports}\\} 61
62 62 \nopt{lcd_color}{\opt{lcd_non-mono}{%
63 \nopt{lcd_color}{\opt{lcd_non-mono}{% 63 \config{\%V(x,y,[width],\tabnlindent[height],[font])}\newline
64 \config{\%V(x,y,[width],\tabnlindent[height],[font])}\newline 64 \config{\%Vf([fgshade])}\newline
65 \config{\%Vf([fgshade])}\newline 65 \config{\%Vb([bgshade])}
66 \config{\%Vb([bgshade])} 66 & See section \ref{ref:Viewports}\\}}
67 & See section \ref{ref:Viewports}\\}} 67
68 68 \opt{lcd_color}{%
69 \opt{lcd_color}{% 69 \config{\%V(x,y,[width],\tabnlindent[height],[font])}\newline
70 \config{\%V(x,y,[width],\tabnlindent[height],[font])}\newline 70 \config{\%Vf([fgcolour])}\newline
71 \config{\%Vf([fgcolour])}\newline 71 \config{\%Vb([bgcolour])}\newline
72 \config{\%Vb([bgcolour])}\newline 72 \config{\%Vg(start,end \tabnlindent[,text])}
73 \config{\%Vg(start,end \tabnlindent[,text])} 73 & See section \ref{ref:Viewports}\\}
74 & See section \ref{ref:Viewports}\\} 74
75 75 \opt{lcd_non-mono}{%
76 \opt{lcd_non-mono}{% 76 \config{\%Vs(mode[,param])}
77 \config{\%Vs(mode[,param])} 77 & See section \ref{ref:Viewports}\\}
78 & See section \ref{ref:Viewports}\\} 78 \config{\%Vl('identifier',\newline\dots)} & Preloads a viewport for later
79
80 \config{\%Vl('identifier',\newline\dots)} & Preloads a viewport for later
81 display. `identifier' is a single lowercase letter (a-z) and the `\dots' 79 display. `identifier' is a single lowercase letter (a-z) and the `\dots'
82 parameters use the same logic as the \%V tag explained above.\\ 80 parameters use the same logic as the \%V tag explained above.\\
83 81
84 \config{\%Vd('identifier')} & Display the `identifier' viewport. E.g. 82 \config{\%Vd('identifier')} & Display the `identifier' viewport. E.g.
85 \config{\%?C<\%Vd(a)|\%Vd(b)>} 83 \config{\%?C<\%Vd(a)|\%Vd(b)>}
86 will show viewport `a' if album art is found, and `b' if it isn't.\\ 84 will show viewport `a' if album art is found, and `b' if it isn't.\\
87 85
88 \config{\%Vi('label',\dots)} & 86 \config{\%Vi('label',\dots)} &
89 Declare a Custom UI Viewport. The `\dots' parameters use the same logic as 87 Declare a Custom UI Viewport. The `\dots' parameters use the same logic as
90 the \config{\%V} tag explained above. See section \ref{ref:Viewports}.\\ 88 the \config{\%V} tag explained above. See section \ref{ref:Viewports}.\\
91 89
92 \config{\%VI('label')} & Set the Info Viewport to use the viewport called 90 \config{\%VI('label')} & Set the Info Viewport to use the viewport called
93 label, as declared with the previous tag.\\ 91 label, as declared with the previous tag.\\
94 92
95 \config{\%VB} & Draw this viewport on the backdrop layer.\\ 93 \config{\%VB} & Draw this viewport on the backdrop layer.\\
96 \end{tagmap} 94 \end{tagmap}
97 95
98 \section{Additional Fonts} 96\section{Additional Fonts}
99 \begin{tagmap} 97 \begin{tagmap}
100 \config{\%Fl('id',filename)} & See section \ref{ref:multifont}.\\ 98 \config{\%Fl('id',filename)} & See section \ref{ref:multifont}.\\
101 \end{tagmap} 99 \end{tagmap}
102 100
103 \section{Misc Coloring Tags} 101\section{Misc Coloring Tags}
104 \begin{tagmap} 102 \begin{tagmap}
105 \config{\%dr(x,y,width,height,[color1,color2])} & Color a rectangle. \\ 103 \config{\%dr(x,y,width,height,[color1,color2])} & Color a rectangle. \\
106 \end{tagmap} 104 \end{tagmap}
107 width and height can be ``$-$'' to fill the viewport. If no color is 105 width and height can be ``$-$'' to fill the viewport. If no color is
108 specified the viewports foreground color will be used. If two 106 specified the viewports foreground color will be used. If two
109 colors are specified it will do a gradient fill. 107 colors are specified it will do a gradient fill.
110}
111 108
112\section{Power Related Information} 109\section{Power Related Information}
113 \begin{tagmap} 110 \begin{tagmap}