Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 1 | \subsubsection{Viewport Declaration Syntax} |
| 2 | |
Alex Parker | 64d4ddf | 2010-06-20 12:58:41 +0000 | [diff] [blame] | 3 | \config{\%V(x,y,[width],[height],[font]) \%Vf([fgshade]) \%Vb([bgshade])}% |
Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 4 | |
| 5 | \begin{itemize} |
Alex Parker | 77a78ee | 2011-08-19 11:43:51 +0000 | [diff] [blame] | 6 | \item \%Vf and \%Vb set the foreground and background shade of grey |
| 7 | respectively. |
Alexander Levin | b57fe48 | 2009-12-23 20:05:29 +0000 | [diff] [blame] | 8 | \item `fgshade' and `bgshade' are numbers in the range 0 (= black) to 3 |
Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 9 | (= white). |
Alexander Levin | b57fe48 | 2009-12-23 20:05:29 +0000 | [diff] [blame] | 10 | \item `font' is a number: 0 is the built-in system font, 1 is the |
Alex Parker | 994d955 | 2010-06-20 16:23:47 +0000 | [diff] [blame] | 11 | current menu font, and 2-9 are additional skin loaded fonts (see |
Alex Parker | 1b0c77f | 2010-06-20 12:58:09 +0000 | [diff] [blame] | 12 | \reference{ref:multifont}). |
Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 13 | \item Only the coordinates \emph{have} to be specified. Leaving the other |
| 14 | definitions blank will set them to their default values. |
Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 15 | \end{itemize} |
| 16 | |
Alex Parker | 64d4ddf | 2010-06-20 12:58:41 +0000 | [diff] [blame] | 17 | \note{The correct number of commas with hyphens in |
Alex Parker | 77a78ee | 2011-08-19 11:43:51 +0000 | [diff] [blame] | 18 | blank fields are still needed.} |
Alexander Levin | 64bb9a0 | 2010-05-18 20:23:22 +0000 | [diff] [blame] | 19 | |
Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 20 | \begin{example} |
Alex Parker | 64d4ddf | 2010-06-20 12:58:41 +0000 | [diff] [blame] | 21 | %V(12,20,-,-,1) %Vf(0) %Vb(3) |
Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 22 | %sThis viewport is displayed permanently. It starts 12px from the left and |
| 23 | %s20px from the top of the screen, and fills the rest of the screen from |
| 24 | %sthat point. The lines will scroll if this text does not fit in the viewport. |
Alex Parker | 64d4ddf | 2010-06-20 12:58:41 +0000 | [diff] [blame] | 25 | %sThe user font is used, the foreground colour is set to black and the |
| 26 | %sbackground is set to white. |
Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 27 | \end{example} |
Alexander Levin | 9df5638 | 2010-05-12 22:06:18 +0000 | [diff] [blame] | 28 | \begin{rbtabular}{.75\textwidth}{XX}{\textbf{Viewport definition} & \textbf{Default value}}{}{} |
Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 29 | width/height & remaining part of screen \\ |
| 30 | font & user defined \\ |
| 31 | shade & black foreground on white background \\ |
| 32 | \end{rbtabular} |
Alexander Levin | b57fe48 | 2009-12-23 20:05:29 +0000 | [diff] [blame] | 33 | |