mirror of https://github.com/marrub--/zscript-doc
778 B
778 B
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 notGS_FULLCONSOLE
. -
MidPrint
Prints
text
(possibly aLANGUAGE
string if prefixed with$
) infont
to the middle of the screen for 1½ seconds. Will print even if the player is a spectator ifbold
istrue
. Uses themsgmidcolor
CVar for non-bold messages andmsgmidcolor2
for bold messages.This is the function used internally by ACS'
Print
andPrintBold
functions. -
PrintF
Prints a formatted string to the console.