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]}% |
Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 4 | |
| 5 | \begin{itemize} |
Alexander Levin | 8f8cdd3 | 2010-05-19 16:01:38 +0000 | [diff] [blame] | 6 | \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] | 7 | current menu font, and 2-9 are additional skin loaded fonts (see |
Alex Parker | 1b0c77f | 2010-06-20 12:58:09 +0000 | [diff] [blame] | 8 | \reference{ref:multifont}). |
Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 9 | \item Only the coordinates \emph{have} to be specified. Leaving the other |
| 10 | definitions blank will set them to their default values. |
Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 11 | \end{itemize} |
Alexander Levin | 64bb9a0 | 2010-05-18 20:23:22 +0000 | [diff] [blame] | 12 | |
Alex Parker | 64d4ddf | 2010-06-20 12:58:41 +0000 | [diff] [blame] | 13 | \note{The correct number of commas with hyphens in |
Alex Parker | 77a78ee | 2011-08-19 11:43:51 +0000 | [diff] [blame] | 14 | blank fields are still needed.} |
Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 15 | |
| 16 | \begin{example} |
Alex Parker | 64d4ddf | 2010-06-20 12:58:41 +0000 | [diff] [blame] | 17 | %V(12,20,-,-,1) |
Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 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 |
| 20 | %sthat point. The lines will scroll if this text does not fit in the viewport. |
| 21 | %sThe user font is used. |
| 22 | \end{example} |
Alexander Levin | 9df5638 | 2010-05-12 22:06:18 +0000 | [diff] [blame] | 23 | \begin{rbtabular}{.75\textwidth}{XX}{\textbf{Viewport definition} & \textbf{Default value}}{}{} |
Alex Parker | ab563da | 2009-09-20 16:48:45 +0000 | [diff] [blame] | 24 | width/height & remaining part of screen \\ |
| 25 | font & user defined \\ |
| 26 | \end{rbtabular} |
Alexander Levin | b57fe48 | 2009-12-23 20:05:29 +0000 | [diff] [blame] | 27 | |