fun writeCenter(string: String, y: Int): AsciiPanelView
Write a string to the center of the panel at the specified y position. This updates the cursor's position.
y
- the distance from the top to begin writing from
Return
this for convenient chaining of method calls
fun writeCenter(string: String, y: Int, charColor: Int): AsciiPanelView
Write a string to the center of the panel at the specified y position with the specified foreground color. This updates the cursor's position but not the default foreground color.
y
- the distance from the top to begin writing from
charColor
- the foreground color or null to use the default
Return
this for convenient chaining of method calls
fun writeCenter(string: String, y: Int, charColor: Int?, bgColor: Int?): AsciiPanelView
Write a string to the center of the panel at the specified y position with the specified foreground and background colors. This updates the cursor's position but not the default foreground or background colors.
y
- the distance from the top to begin writing from
charColor
- the foreground color or null to use the default
bgColor
- the background color or null to use the default
Return
this for convenient chaining of method calls