Method PostString
PostString(string, int, int, ScreenAnchor, float, Color?, Color?, int, string)
Displays a message on the player's screen.
The message is always displayed on top of whatever is on the screen, including UI elements.
public void PostString(string message, int xPos, int yPos, ScreenAnchor anchor, float life, Color? start = null, Color? end = null, int id = 0, string font = "")
Parameters
messagestringThe message to print.
xPosintThe x coordinate relative to anchor.
yPosintThe y coordinate relative to anchor.
anchorScreenAnchorThe screen anchor/origin point.
lifefloatDuration to show ControlledCreature string in seconds.
startColor?The starting color of ControlledCreature text (default: white).
endColor?The color of the text to fade to as it nears the end of the lifetime (default: white).
idintAn optional numeric ID for ControlledCreature string. If not set to 0, subsequent calls to PostString will remove the text with the same ID.
fontstringIf specified, the message will be rendered with the specified font instead of the default console font.