diff options
Diffstat (limited to 'manual/advanced_topics/viewports')
-rw-r--r-- | manual/advanced_topics/viewports/colour-vp-syntax.tex | 14 | ||||
-rw-r--r-- | manual/advanced_topics/viewports/grayscale-vp-syntax.tex | 4 | ||||
-rw-r--r-- | manual/advanced_topics/viewports/mono-vp-syntax.tex | 2 |
3 files changed, 14 insertions, 6 deletions
diff --git a/manual/advanced_topics/viewports/colour-vp-syntax.tex b/manual/advanced_topics/viewports/colour-vp-syntax.tex index 2b0e932af7..d027c3b757 100644 --- a/manual/advanced_topics/viewports/colour-vp-syntax.tex +++ b/manual/advanced_topics/viewports/colour-vp-syntax.tex | |||
@@ -1,9 +1,14 @@ | |||
1 | \subsubsection{Viewport Declaration Syntax} | 1 | \subsubsection{Viewport Declaration Syntax} |
2 | 2 | ||
3 | \config{\%V(x,y,[width],[height],[font]) \%Vf([fgcolour]) \%Vb([bgcolour])}% | 3 | \config{\%V(x,y,[width],[height],[font]) \%Vf([fgcolour]) \%Vb([bgcolour]) % |
4 | \%Vg(start, end [,text])}% | ||
4 | 5 | ||
5 | \begin{itemize} | 6 | \begin{itemize} |
7 | \item \%Vf and \%Vb set the foreground and background colours respectively. | ||
6 | \item `fgcolour' and `bgcolour' are 6-digit RGB888 colours, e.g. FF00FF. | 8 | \item `fgcolour' and `bgcolour' are 6-digit RGB888 colours, e.g. FF00FF. |
9 | \item \%Vg defines a gradient fill that can then be used with the \%Vs tag. | ||
10 | `start' and `end' set the initial and final colours, and the optional `text' | ||
11 | sets the text colour. Colours are 6-digit RGB888, e.g. FF00FF. | ||
7 | \item `font' is a number: 0 is the built-in system font, 1 is the | 12 | \item `font' is a number: 0 is the built-in system font, 1 is the |
8 | current menu font, and 2-9 are additional skin loaded fonts (see | 13 | current menu font, and 2-9 are additional skin loaded fonts (see |
9 | \reference{ref:multifont}). | 14 | \reference{ref:multifont}). |
@@ -12,15 +17,16 @@ | |||
12 | \end{itemize} | 17 | \end{itemize} |
13 | 18 | ||
14 | \note{The correct number of commas with hyphens in | 19 | \note{The correct number of commas with hyphens in |
15 | blank fields are still needed in any case.} | 20 | blank fields are still needed.} |
16 | 21 | ||
17 | \begin{example} | 22 | \begin{example} |
18 | %V(12,20,-,-,1) %Vf(000000) %Vb(FFFFFF) | 23 | %V(12,20,-,-,1) %Vf(000000) %Vb(FFFFFF) %Vg(FFC0CB, FF0000, FFFF00) |
19 | %sThis viewport is displayed permanently. It starts 12px from the left and | 24 | %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 | 25 | %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. | 26 | %sthat point. The lines will scroll if this text does not fit in the viewport. |
22 | %sThe user font is used, and the foreground and background are set to black | 27 | %sThe user font is used, and the foreground and background are set to black |
23 | %sand white respectively. | 28 | %sand white respectively. The line gradient is set to pink to red with yellow |
29 | %text. | ||
24 | \end{example} | 30 | \end{example} |
25 | \begin{rbtabular}{.75\textwidth}{XX}{\textbf{Viewport definition} & \textbf{Default value}}{}{} | 31 | \begin{rbtabular}{.75\textwidth}{XX}{\textbf{Viewport definition} & \textbf{Default value}}{}{} |
26 | width/height & remaining part of screen \\ | 32 | width/height & remaining part of screen \\ |
diff --git a/manual/advanced_topics/viewports/grayscale-vp-syntax.tex b/manual/advanced_topics/viewports/grayscale-vp-syntax.tex index 32248d275e..2bced327d8 100644 --- a/manual/advanced_topics/viewports/grayscale-vp-syntax.tex +++ b/manual/advanced_topics/viewports/grayscale-vp-syntax.tex | |||
@@ -3,6 +3,8 @@ | |||
3 | \config{\%V(x,y,[width],[height],[font]) \%Vf([fgshade]) \%Vb([bgshade])}% | 3 | \config{\%V(x,y,[width],[height],[font]) \%Vf([fgshade]) \%Vb([bgshade])}% |
4 | 4 | ||
5 | \begin{itemize} | 5 | \begin{itemize} |
6 | \item \%Vf and \%Vb set the foreground and background shade of grey | ||
7 | respectively. | ||
6 | \item `fgshade' and `bgshade' are numbers in the range 0 (= black) to 3 | 8 | \item `fgshade' and `bgshade' are numbers in the range 0 (= black) to 3 |
7 | (= white). | 9 | (= white). |
8 | \item `font' is a number: 0 is the built-in system font, 1 is the | 10 | \item `font' is a number: 0 is the built-in system font, 1 is the |
@@ -13,7 +15,7 @@ | |||
13 | \end{itemize} | 15 | \end{itemize} |
14 | 16 | ||
15 | \note{The correct number of commas with hyphens in | 17 | \note{The correct number of commas with hyphens in |
16 | blank fields are still needed in any case.} | 18 | blank fields are still needed.} |
17 | 19 | ||
18 | \begin{example} | 20 | \begin{example} |
19 | %V(12,20,-,-,1) %Vf(0) %Vb(3) | 21 | %V(12,20,-,-,1) %Vf(0) %Vb(3) |
diff --git a/manual/advanced_topics/viewports/mono-vp-syntax.tex b/manual/advanced_topics/viewports/mono-vp-syntax.tex index bb8fce64da..5bc92c9a8d 100644 --- a/manual/advanced_topics/viewports/mono-vp-syntax.tex +++ b/manual/advanced_topics/viewports/mono-vp-syntax.tex | |||
@@ -11,7 +11,7 @@ | |||
11 | \end{itemize} | 11 | \end{itemize} |
12 | 12 | ||
13 | \note{The correct number of commas 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.} |
15 | 15 | ||
16 | \begin{example} | 16 | \begin{example} |
17 | %V(12,20,-,-,1) | 17 | %V(12,20,-,-,1) |