Skip to content

Typer ​

class Typer extends Control

Methods ​

func get_parsed_text() -> String ​


func add_linebreaks() -> Variant ​


func prepare_lines() -> Variant ​


func prepare_spacing() -> Variant ​


func remove_bbcode(txt: String) -> String ​


func parse_commands() -> String ​


func evaluate(command_info: Typer.CommandInfo) -> void ​


func write_char() -> Variant ​


func play_talk_sound() -> Variant ​


func apply_effects(typer_char: Typer.Char, effects: String[]) -> Typer.Char ​

Returns a given char after all active effects have been applied to it


static func draw_texture_color(item: RID, pos: Vector2, texture: RID, texture_size: Vector2, src_rect: Rect2, color_tl: Color, color_tr: Color, color_br: Color, color_bl: Color) -> Variant ​


static func get_top_and_bottom_colors(glyph_offset: Vector2, glyph_size: Vector2, font_size: int, tcolor: Color, bcolor: Color) -> Color[] ​


static func draw_char_color(item: RID, font: Font, pos: Vector2, chara: String, font_size: int, color_top: Color, color_bottom: Color) -> void ​


func set_preset(preset: TyperPreset) -> Variant ​