๐ฎConsole
These are all of the functions revolving the console that Wave supports.
Clear
<void> rconsoleclear(<void>)Clears all text from the console.
Close
<void> rconsoleclose(<void>)Closes the console.
Alternative:
rconsoledestroy
Create
<void> rconsolecreate(<void>)Creates a new console window for logging and interaction.
Debug
<void> rconsoledebug(<string text>)Prints a debug message to the console in a distinct debug color/style.
Error
<void> rconsoleerr(<string> text)Prints
textinto the console, with[ERROR]written before it.
Info
<void> rconsoleinfo(<string> text)Prints
textinto the console, with[INFO]written before it.
Input
<string> rconsoleinput(<void>)Yields the current thread until the user inputs text and presses
Enter. Returns the input they put in.
Name
<void> rconsolename(<string> title)Sets the console's title to
title.
Alternative:
rconsolesettitle
Print
<void> rconsoleprint(<string> text)Prints
textinto the console.
Print Console
<void> printconsole(<string> message, <byte> red, <byte> green, <byte> blue)Prints
messageinto the internal and integrated console with RGB value.
Console Colors:
Black
@@BLACK@@
Blue
@@BLUE@@
Green
@@GREEN@@
Cyan
@@CYAN@@
Red
@@RED@@
Magenta
@@MAGENTA@@
Light Gray
@@LIGHT_GRAY@@
Dark Gray
@@DARK_GRAY@@
Light Blue
@@LIGHT_BLUE@@
Light Green
@@LIGHT_GREEN@@
Light Cyan
@@LIGHT_CYAN@@
Light Red
@@LIGHT_RED@@
Light Magenta
@@LIGHT_MAGENTA@@
Yellow
@@YELLOW@@
White
@@WHITE@@
Example:
rconsolename("console") -- Sets the name of the console to 'console'
rconsoleprint("gamer\n")
rconsoleprint("@@YELLOW@@") -- Changes the text color to Yellow
rconsoleprint("gamer but yellow\n")
rconsoleerr("omg error!")
rconsolewarn("omg warning!")
wait(3)
rconsoleclear() -- Clears all text
wait(1)
rconsoleclose() -- Closes the consoleYou must use \n at the end of rconsoleprint to make a new line.
rconsoleinfo, rconsolewarn, and rconsoleerr do this automatically.
Last updated