TextComponent

Methods
6
Fields
None

Getting one

TextComponent.new()

Methods

MethodReturnsDescription
setText(string?)()setText(text).
setPosition(Point?)()(TextComponent, Point?) -> (): setPosition(position): the baseline's start.
setPosition(number, number)()
setColor(Color?)()setColor(color): nil draws the text in the shadow's black.
setOutline(boolean)()setOutline(outline): four offset copies instead of the shadow.
setFont(Font?)()setFont(font): nil uses the graphics' font.
new()TextComponentTextComponent.new(): white, shadowed, the graphics' font.

Returned by

MethodReturnsDescription
TextComponentClass.newTextComponentTextComponent.new(): white, shadowed, the graphics' font.

Method details

setPosition

setPosition: ((TextComponent, Point?) -> ()) & ((TextComponent, number, number) -> ())

(TextComponent, Point?) -> (): setPosition(position): the baseline's start.

(TextComponent, number, number) -> (): setPosition(x, y).

new

new: () -> TextComponent

TextComponent.new(): white, shadowed, the graphics' font.