2018-12-29 16:05:19 -08:00
|
|
|
# Console
|
|
|
|
|
|
|
|
Basic access to console functionality.
|
|
|
|
|
|
|
|
```
|
|
|
|
struct Console
|
|
|
|
{
|
|
|
|
static void HideConsole();
|
|
|
|
static void MidPrint(Font font, string text, bool bold = false);
|
|
|
|
static vararg void Printf(string fmt, ...);
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
- `HideConsole`
|
|
|
|
|
|
|
|
Hides the console if it is open and `GameState` is not `GS_FULLCONSOLE`.
|
|
|
|
|
|
|
|
- `MidPrint`
|
|
|
|
|
2019-02-02 18:06:35 -08:00
|
|
|
Prints `text` (possibly a `LANGUAGE` string if prefixed with `$`) in `font`
|
|
|
|
to the middle of the screen for 1½ seconds. Will print even if the player is
|
|
|
|
a spectator if `bold` is `true`. Uses the `msgmidcolor` CVar for non-bold
|
|
|
|
messages and `msgmidcolor2` for bold messages.
|
2018-12-29 16:05:19 -08:00
|
|
|
|
2019-02-02 18:06:35 -08:00
|
|
|
This is the function used internally by ACS' `Print` and `PrintBold`
|
|
|
|
functions.
|
2018-12-29 16:05:19 -08:00
|
|
|
|
|
|
|
- `Printf`
|
|
|
|
|
|
|
|
Prints a formatted string to the console.
|
|
|
|
|
|
|
|
<!-- EOF -->
|