summaryrefslogtreecommitdiffstats
path: root/manual/advanced_topics/viewports
diff options
context:
space:
mode:
Diffstat (limited to 'manual/advanced_topics/viewports')
-rw-r--r--manual/advanced_topics/viewports/colour-conditional.tex16
-rw-r--r--manual/advanced_topics/viewports/colour-vp-syntax.tex9
-rw-r--r--manual/advanced_topics/viewports/grayscale-conditional.tex16
-rw-r--r--manual/advanced_topics/viewports/grayscale-vp-syntax.tex9
-rw-r--r--manual/advanced_topics/viewports/mono-conditional.tex12
-rw-r--r--manual/advanced_topics/viewports/mono-vp-syntax.tex6
6 files changed, 35 insertions, 33 deletions
diff --git a/manual/advanced_topics/viewports/colour-conditional.tex b/manual/advanced_topics/viewports/colour-conditional.tex
index f8fc1fa50a..d864194205 100644
--- a/manual/advanced_topics/viewports/colour-conditional.tex
+++ b/manual/advanced_topics/viewports/colour-conditional.tex
@@ -1,13 +1,13 @@
\begin{example}
- %?C<%Vda|%Vdb>
- %Vl|a|10|10|50|50|-|-|-|
- %Cl|0|0|50|50|
- %C
- %Vl|a|0|70|70|14|1|-|-|
+ %?C<%Vd(a)|%Vd(b)>
+ %Vl(a,10,10,50,50,-)
+ %Cl(0,0,50,50,c,c)
+ %Cd
+ %Vl(a,0,70,70,14,1)
%s%acThere you have it: Album art.
- %Vl|b|20|14|50|14|1|ff0000|ffffff|
- %t1%acWarning:;%t.1
- %Vl|b|20|30|50|50|1|000000|ffffff|
+ %Vl(b,20,14,50,14,1) %Vf(ff0000) %Vb(ffffff)
+ %t(1)%acWarning:;%t(.1)
+ %Vl(b,20,30,50,50,1) %Vf(000000) %Vb(ffffff)
%sNo album art found
%scheck your filenames.
\end{example}
diff --git a/manual/advanced_topics/viewports/colour-vp-syntax.tex b/manual/advanced_topics/viewports/colour-vp-syntax.tex
index 10b879241b..e6d0c82cf8 100644
--- a/manual/advanced_topics/viewports/colour-vp-syntax.tex
+++ b/manual/advanced_topics/viewports/colour-vp-syntax.tex
@@ -1,6 +1,6 @@
\subsubsection{Viewport Declaration Syntax}
-\config{\%V{\textbar}x{\textbar}y{\textbar}[width]{\textbar}[height]{\textbar}[font]{\textbar}[fgcolour]{\textbar}[bgcolour]{\textbar}}%
+\config{\%V(x,y,[width],[height],[font]) \%Vf([fgcolour]) \%Vb([bgcolour])}%
\begin{itemize}
\item `fgcolour' and `bgcolour' are 6-digit RGB888 colours, e.g. FF00FF.
@@ -11,15 +11,16 @@
definitions blank will set them to their default values.
\end{itemize}
-\note{The correct number of `{\textbar}'s (vertical bars) with hyphens in
+\note{The correct number of commas with hyphens in
blank fields are still needed in any case.}
\begin{example}
- %V|12|20|-|-|1|-|-|
+ %V(12,20,-,-,1) %Vf(000000) %Vb(FFFFFF)
%sThis viewport is displayed permanently. It starts 12px from the left and
%s20px from the top of the screen, and fills the rest of the screen from
%sthat point. The lines will scroll if this text does not fit in the viewport.
- %sThe user font is used, as are the default foreground/background colours.
+ %sThe user font is used, and the foreground and background are set to black
+ %sand white respectively.
\end{example}
\begin{rbtabular}{.75\textwidth}{XX}{\textbf{Viewport definition} & \textbf{Default value}}{}{}
width/height & remaining part of screen \\
diff --git a/manual/advanced_topics/viewports/grayscale-conditional.tex b/manual/advanced_topics/viewports/grayscale-conditional.tex
index acca85a9e7..698f815172 100644
--- a/manual/advanced_topics/viewports/grayscale-conditional.tex
+++ b/manual/advanced_topics/viewports/grayscale-conditional.tex
@@ -1,13 +1,13 @@
\begin{example}
- %?C<%Vda|%Vdb>
- %Vl|a|10|10|50|50|-|-|-|
- %Cl|0|0|50|50|
- %C
- %Vl|a|0|70|70|14|1|-|-|
+ %?C<%Vd(a)|%Vd(b)>
+ %Vl(a,10,10,50,50,-)
+ %Cl(0,0,50,50,c,c)
+ %Cd
+ %Vl(a,0,70,70,14,1)
%s%acThere you have it: Album art.
- %Vl|b|20|14|50|14|1|2|-|
- %t1%acWarning:;%t.1
- %Vl|b|20|30|50|50|1|-|-|
+ %Vl(b,20,14,50,14,1)
+ %t(1)%acWarning:;%t(.1)
+ %Vl(b,20,30,50,50,1)
%sNo album art found
%scheck your filenames.
\end{example}
diff --git a/manual/advanced_topics/viewports/grayscale-vp-syntax.tex b/manual/advanced_topics/viewports/grayscale-vp-syntax.tex
index a8460703a9..1c0c8bf532 100644
--- a/manual/advanced_topics/viewports/grayscale-vp-syntax.tex
+++ b/manual/advanced_topics/viewports/grayscale-vp-syntax.tex
@@ -1,6 +1,6 @@
\subsubsection{Viewport Declaration Syntax}
-\config{\%V{\textbar}x{\textbar}y{\textbar}[width]{\textbar}[height]{\textbar}[font]{\textbar}[fgshade]{\textbar}[bgshade]{\textbar}}%
+\config{\%V(x,y,[width],[height],[font]) \%Vf([fgshade]) \%Vb([bgshade])}%
\begin{itemize}
\item `fgshade' and `bgshade' are numbers in the range 0 (= black) to 3
@@ -12,15 +12,16 @@
definitions blank will set them to their default values.
\end{itemize}
-\note{The correct number of `{\textbar}'s (vertical bars) with hyphens in
+\note{The correct number of commas with hyphens in
blank fields are still needed in any case.}
\begin{example}
- %V|12|20|-|-|1|-|-|
+ %V(12,20,-,-,1) %Vf(0) %Vb(3)
%sThis viewport is displayed permanently. It starts 12px from the left and
%s20px from the top of the screen, and fills the rest of the screen from
%sthat point. The lines will scroll if this text does not fit in the viewport.
- %sThe user font is used, as are the default foreground/background shades.
+ %sThe user font is used, the foreground colour is set to black and the
+ %sbackground is set to white.
\end{example}
\begin{rbtabular}{.75\textwidth}{XX}{\textbf{Viewport definition} & \textbf{Default value}}{}{}
width/height & remaining part of screen \\
diff --git a/manual/advanced_topics/viewports/mono-conditional.tex b/manual/advanced_topics/viewports/mono-conditional.tex
index 399832cc79..af6e6f6d2d 100644
--- a/manual/advanced_topics/viewports/mono-conditional.tex
+++ b/manual/advanced_topics/viewports/mono-conditional.tex
@@ -1,12 +1,12 @@
\begin{example}
- %?mh<%Vda|%Vdb>
- %Vl|a|10|10|50|50|-|
+ %?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|
+ %Vl(a,0,70,70,14,1)
%s%acYour DAP is locked.
- %Vl|b|20|14|50|14|1|
- %t1%acWarning:;%t.1
- %Vl|b|20|30|50|50|0|
+ %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,
diff --git a/manual/advanced_topics/viewports/mono-vp-syntax.tex b/manual/advanced_topics/viewports/mono-vp-syntax.tex
index 8c84607499..81194a99d0 100644
--- a/manual/advanced_topics/viewports/mono-vp-syntax.tex
+++ b/manual/advanced_topics/viewports/mono-vp-syntax.tex
@@ -1,6 +1,6 @@
\subsubsection{Viewport Declaration Syntax}
-\config{\%V{\textbar}x{\textbar}y{\textbar}[width]{\textbar}[height]{\textbar}[font]{\textbar}}%
+\config{\%V(x,y,[width],[height],[font]}%
\begin{itemize}
\item `font' is a number: 0 is the built-in system font, 1 is the
@@ -10,11 +10,11 @@
definitions blank will set them to their default values.
\end{itemize}
-\note{The correct number of `{\textbar}'s (vertical bars) with hyphens in
+\note{The correct number of commas with hyphens in
blank fields are still needed in any case.}
\begin{example}
- %V|12|20|-|-|1|
+ %V(12,20,-,-,1)
%sThis viewport is displayed permanently. It starts 12px from the left and
%s20px from the top of the screen, and fills the rest of the screen from
%sthat point. The lines will scroll if this text does not fit in the viewport.