Constructor
Textbox(x: any, y: any, width: any, height: any, default_font: any, default_font_size: any, battle_box: any)
Arguments:
x: any | |
y: any | |
width: any | |
height: any | |
default_font: any | |
default_font_size: any | |
battle_box: any |
Methods
Textbox:addReaction(id: any, text: any, x: any, y: any, face: any, actor: any)
Arguments:
id: any | |
text: any | |
x: any | |
y: any | |
face: any | |
actor: any |
Fields
Undocumented
Textbox.face: Sprite
A simple object that renders a texture.
This texture must be placed inside assets/sprites/
.
Textbox.text_y: integer
TODO: This was changed 2px lower with the new font, but it was 4px offset. Why? (Used to be 0)
Textbox.text_y: integer
TODO: This was changed with the new font but it's accurate anyways
Textbox.wrap_add_w: integer
Added text width for autowrapping