#include <SDL_console.h>
Data Fields | |
| int | Visible |
| int | WasUnicode |
| int | RaiseOffset |
| int | HideKey |
| char ** | ConsoleLines |
| char ** | CommandLines |
| int | TotalConsoleLines |
| int | ConsoleScrollBack |
| int | TotalCommands |
| int | FontNumber |
| int | LineBuffer |
| int | VChars |
| int | BackX |
| int | BackY |
| char * | Prompt |
| char | Command [CON_CHARS_PER_LINE+1] |
| char | RCommand [CON_CHARS_PER_LINE+1] |
| char | LCommand [CON_CHARS_PER_LINE+1] |
| char | VCommand [CON_CHARS_PER_LINE+1] |
| int | CursorPos |
| int | Offset |
| int | InsMode |
| SDL_Surface * | ConsoleSurface |
| SDL_Surface * | OutputScreen |
| SDL_Surface * | BackgroundImage |
| SDL_Surface * | InputBackground |
| int | DispX |
| int | DispY |
| unsigned char | ConsoleAlpha |
| int | CommandScrollBack |
| void(* | CmdFunction )(struct console_information_td *console, char *command) |
| char *(* | TabFunction )(char *command) |
| int | FontHeight |
| int | FontWidth |
|
|
|
|
|
enum that tells which visible state we are in CON_CLOSED, CON_OPEN, CON_CLOSING, CON_OPENING |
|
|
stores the UNICODE value before the console was shown. On Hide() the UNICODE value is restored. |
|
|
Offset used in show/hide animation |
|
|
the key that can hide the console |
|
|
List of all the past lines |
|
|
List of all the past commands |
|
|
Total number of lines in the console |
|
|
How much the user scrolled back in the console |
|
|
Number of commands that were typed in before (which are now in the CommandLines array) |
|
|
This is the number of the font for the console (DT_* specific; will hopefully disappear in future releases) |
|
|
The number of visible lines in the console (autocalculated on CON_UpdateConsole()) |
|
|
The number of visible characters in one console line (autocalculated on CON_Init() and recalc. on CON_Resize()) |
|
|
The number of visible characters in one console line (autocalculated on CON_Init() and recalc. on CON_Resize()) |
|
|
Background image x and y coords |
|
|
Prompt displayed in command line |
|
|
current command in command line = lcommand + rcommand (Get's updated in AssembleCommand()) |
|
|
left hand side of cursor |
|
|
right hand side of cursor |
|
|
current visible command line |
|
|
Current cursor position relative to the currently typed in command |
|
|
First visible character relative to the currently typed in command (used if command is too long to fit into console) |
|
|
Boolean that tells us whether we are in Insert- or Overwrite-Mode |
|
|
THE Surface of the console |
|
|
This is the screen to draw the console to (normally you VideoSurface) |
|
|
Background image for the console |
|
|
Dirty rectangle that holds the part of the background image that is behind the commandline |
|
|
Dirty rectangle that holds the part of the background image that is behind the commandline |
|
|
The top left x and y coords of the console on the display screen |
|
|
The consoles alpha level |
|
|
How much the users scrolled back in the command lines |
|
|
The Function that is executed if you press 'Return' in the console |
|
|
The Function that is executed if you press 'Tab' in the console |
|
|
The height of the font used in the console |
1.3.2