diff options
Diffstat (limited to 'manual/advanced_topics/viewports')
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 @@ | |||
1 | \begin{example} | 1 | \begin{example} |
2 | %?C<%Vda|%Vdb> | 2 | %?C<%Vd(a)|%Vd(b)> |
3 | %Vl|a|10|10|50|50|-|-|-| | 3 | %Vl(a,10,10,50,50,-) |
4 | %Cl|0|0|50|50| | 4 | %Cl(0,0,50,50,c,c) |
5 | %C | 5 | %Cd |
6 | %Vl|a|0|70|70|14|1|-|-| | 6 | %Vl(a,0,70,70,14,1) |
7 | %s%acThere you have it: Album art. | 7 | %s%acThere you have it: Album art. |
8 | %Vl|b|20|14|50|14|1|ff0000|ffffff| | 8 | %Vl(b,20,14,50,14,1) %Vf(ff0000) %Vb(ffffff) |
9 | %t1%acWarning:;%t.1 | 9 | %t(1)%acWarning:;%t(.1) |
10 | %Vl|b|20|30|50|50|1|000000|ffffff| | 10 | %Vl(b,20,30,50,50,1) %Vf(000000) %Vb(ffffff) |
11 | %sNo album art found | 11 | %sNo album art found |
12 | %scheck your filenames. | 12 | %scheck your filenames. |
13 | \end{example} | 13 | \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 @@ | |||
1 | \subsubsection{Viewport Declaration Syntax} | 1 | \subsubsection{Viewport Declaration Syntax} |
2 | 2 | ||
3 | \config{\%V{\textbar}x{\textbar}y{\textbar}[width]{\textbar}[height]{\textbar}[font]{\textbar}[fgcolour]{\textbar}[bgcolour]{\textbar}}% | 3 | \config{\%V(x,y,[width],[height],[font]) \%Vf([fgcolour]) \%Vb([bgcolour])}% |
4 | 4 | ||
5 | \begin{itemize} | 5 | \begin{itemize} |
6 | \item `fgcolour' and `bgcolour' are 6-digit RGB888 colours, e.g. FF00FF. | 6 | \item `fgcolour' and `bgcolour' are 6-digit RGB888 colours, e.g. FF00FF. |
@@ -11,15 +11,16 @@ | |||
11 | definitions blank will set them to their default values. | 11 | definitions blank will set them to their default values. |
12 | \end{itemize} | 12 | \end{itemize} |
13 | 13 | ||
14 | \note{The correct number of `{\textbar}'s (vertical bars) with hyphens in | 14 | \note{The correct number of commas with hyphens in |
15 | blank fields are still needed in any case.} | 15 | blank fields are still needed in any case.} |
16 | 16 | ||
17 | \begin{example} | 17 | \begin{example} |
18 | %V|12|20|-|-|1|-|-| | 18 | %V(12,20,-,-,1) %Vf(000000) %Vb(FFFFFF) |
19 | %sThis viewport is displayed permanently. It starts 12px from the left and | 19 | %sThis viewport is displayed permanently. It starts 12px from the left and |
20 | %s20px from the top of the screen, and fills the rest of the screen from | 20 | %s20px from the top of the screen, and fills the rest of the screen from |
21 | %sthat point. The lines will scroll if this text does not fit in the viewport. | 21 | %sthat point. The lines will scroll if this text does not fit in the viewport. |
22 | %sThe user font is used, as are the default foreground/background colours. | 22 | %sThe user font is used, and the foreground and background are set to black |
23 | %sand white respectively. | ||
23 | \end{example} | 24 | \end{example} |
24 | \begin{rbtabular}{.75\textwidth}{XX}{\textbf{Viewport definition} & \textbf{Default value}}{}{} | 25 | \begin{rbtabular}{.75\textwidth}{XX}{\textbf{Viewport definition} & \textbf{Default value}}{}{} |
25 | width/height & remaining part of screen \\ | 26 | 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 @@ | |||
1 | \begin{example} | 1 | \begin{example} |
2 | %?C<%Vda|%Vdb> | 2 | %?C<%Vd(a)|%Vd(b)> |
3 | %Vl|a|10|10|50|50|-|-|-| | 3 | %Vl(a,10,10,50,50,-) |
4 | %Cl|0|0|50|50| | 4 | %Cl(0,0,50,50,c,c) |
5 | %C | 5 | %Cd |
6 | %Vl|a|0|70|70|14|1|-|-| | 6 | %Vl(a,0,70,70,14,1) |
7 | %s%acThere you have it: Album art. | 7 | %s%acThere you have it: Album art. |
8 | %Vl|b|20|14|50|14|1|2|-| | 8 | %Vl(b,20,14,50,14,1) |
9 | %t1%acWarning:;%t.1 | 9 | %t(1)%acWarning:;%t(.1) |
10 | %Vl|b|20|30|50|50|1|-|-| | 10 | %Vl(b,20,30,50,50,1) |
11 | %sNo album art found | 11 | %sNo album art found |
12 | %scheck your filenames. | 12 | %scheck your filenames. |
13 | \end{example} | 13 | \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 @@ | |||
1 | \subsubsection{Viewport Declaration Syntax} | 1 | \subsubsection{Viewport Declaration Syntax} |
2 | 2 | ||
3 | \config{\%V{\textbar}x{\textbar}y{\textbar}[width]{\textbar}[height]{\textbar}[font]{\textbar}[fgshade]{\textbar}[bgshade]{\textbar}}% | 3 | \config{\%V(x,y,[width],[height],[font]) \%Vf([fgshade]) \%Vb([bgshade])}% |
4 | 4 | ||
5 | \begin{itemize} | 5 | \begin{itemize} |
6 | \item `fgshade' and `bgshade' are numbers in the range 0 (= black) to 3 | 6 | \item `fgshade' and `bgshade' are numbers in the range 0 (= black) to 3 |
@@ -12,15 +12,16 @@ | |||
12 | definitions blank will set them to their default values. | 12 | definitions blank will set them to their default values. |
13 | \end{itemize} | 13 | \end{itemize} |
14 | 14 | ||
15 | \note{The correct number of `{\textbar}'s (vertical bars) with hyphens in | 15 | \note{The correct number of commas with hyphens in |
16 | blank fields are still needed in any case.} | 16 | blank fields are still needed in any case.} |
17 | 17 | ||
18 | \begin{example} | 18 | \begin{example} |
19 | %V|12|20|-|-|1|-|-| | 19 | %V(12,20,-,-,1) %Vf(0) %Vb(3) |
20 | %sThis viewport is displayed permanently. It starts 12px from the left and | 20 | %sThis viewport is displayed permanently. It starts 12px from the left and |
21 | %s20px from the top of the screen, and fills the rest of the screen from | 21 | %s20px from the top of the screen, and fills the rest of the screen from |
22 | %sthat point. The lines will scroll if this text does not fit in the viewport. | 22 | %sthat point. The lines will scroll if this text does not fit in the viewport. |
23 | %sThe user font is used, as are the default foreground/background shades. | 23 | %sThe user font is used, the foreground colour is set to black and the |
24 | %sbackground is set to white. | ||
24 | \end{example} | 25 | \end{example} |
25 | \begin{rbtabular}{.75\textwidth}{XX}{\textbf{Viewport definition} & \textbf{Default value}}{}{} | 26 | \begin{rbtabular}{.75\textwidth}{XX}{\textbf{Viewport definition} & \textbf{Default value}}{}{} |
26 | width/height & remaining part of screen \\ | 27 | 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 @@ | |||
1 | \begin{example} | 1 | \begin{example} |
2 | %?mh<%Vda|%Vdb> | 2 | %?mh<%Vd(a)|%Vd(b)> |
3 | %Vl|a|10|10|50|50|-| | 3 | %Vl(a,10,10,50,50,-) |
4 | %sYou could now show a hold icon using the %%xl and %%xd tags. | 4 | %sYou could now show a hold icon using the %%xl and %%xd tags. |
5 | %Vl|a|0|70|70|14|1| | 5 | %Vl(a,0,70,70,14,1) |
6 | %s%acYour DAP is locked. | 6 | %s%acYour DAP is locked. |
7 | %Vl|b|20|14|50|14|1| | 7 | %Vl(b,20,14,50,14,1) |
8 | %t1%acWarning:;%t.1 | 8 | %t(1)%acWarning:;%t(.1) |
9 | %Vl|b|20|30|50|50|0| | 9 | %Vl(b,20,30,50,50,0) |
10 | %sYou've unlocked your player. | 10 | %sYou've unlocked your player. |
11 | \end{example} | 11 | \end{example} |
12 | This example checks for hold. Viewport `a' will be displayed if it is on, | 12 | 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 @@ | |||
1 | \subsubsection{Viewport Declaration Syntax} | 1 | \subsubsection{Viewport Declaration Syntax} |
2 | 2 | ||
3 | \config{\%V{\textbar}x{\textbar}y{\textbar}[width]{\textbar}[height]{\textbar}[font]{\textbar}}% | 3 | \config{\%V(x,y,[width],[height],[font]}% |
4 | 4 | ||
5 | \begin{itemize} | 5 | \begin{itemize} |
6 | \item `font' is a number: 0 is the built-in system font, 1 is the | 6 | \item `font' is a number: 0 is the built-in system font, 1 is the |
@@ -10,11 +10,11 @@ | |||
10 | definitions blank will set them to their default values. | 10 | definitions blank will set them to their default values. |
11 | \end{itemize} | 11 | \end{itemize} |
12 | 12 | ||
13 | \note{The correct number of `{\textbar}'s (vertical bars) with hyphens in | 13 | \note{The correct number of commas with hyphens in |
14 | blank fields are still needed in any case.} | 14 | blank fields are still needed in any case.} |
15 | 15 | ||
16 | \begin{example} | 16 | \begin{example} |
17 | %V|12|20|-|-|1| | 17 | %V(12,20,-,-,1) |
18 | %sThis viewport is displayed permanently. It starts 12px from the left and | 18 | %sThis viewport is displayed permanently. It starts 12px from the left and |
19 | %s20px from the top of the screen, and fills the rest of the screen from | 19 | %s20px from the top of the screen, and fills the rest of the screen from |
20 | %sthat point. The lines will scroll if this text does not fit in the viewport. | 20 | %sthat point. The lines will scroll if this text does not fit in the viewport. |