GMConsole emulates a console output. It displays a suite of messages along with their timestamp, and allows to cycle through them.
Creates a new instance of GMConsole.
Its graphical properties are defined by its associated GMStyle.
a GMConsole instance.
Post a new message to the console. This will set the console to display this message if the current message was the the last posted message. If the maximum number of messages is reached, this will remove the oldest message. If no string color is provided, the default color will be used.
Removes every messages and resets the console.
Removes the last message. This can be useful if you are constantly posting a parameter modification, but only want to keep trace of the most recent modification as long as the modified parameter does not change.
Displays the previous message.
Displays the next message.
Displays the most recent message.
Sets or gets the maximum number of messages that will be kept in memory. Defaults to inf
.
Returns the full message list.
Sets or gets the font ratio relative to the height of the widget.
Sets or gets the color that will be used to display messages if no color is specified when posting the message.
The function associated to the View's drawFunc
. Shouldn't be modified.