Skip to main content

EditorSproutyDialogsTranslationBox

Inherits: Container

Description

Component to display a text box with header labels that indicates the language and locale code of the translation.

Needs a text box child node that can be a LineEdit, TextEdit or ExpandableTextBox.

Methods

Return TypeMethod
Stringget_text()
voidset_text(text: String)
Stringget_locale()
voidset_locale(locale: String)

Signals

signal modified(modified: bool)

Emitted when the translation box is modified.


signal open_text_editor(text_box: TextEdit)

Emitted when pressing the expand button to open the text editor.


signal update_text_editor(text_box: TextEdit)

Emitted when the text box focus is changed while the text editor is open.


Method Descriptions

func get_text() -> String

Returns the text from the text box.


func set_text(text: String) -> void

Set the text to the text box.


func get_locale() -> String

Returns the locale code.


func set_locale(locale: String) -> void

Set the locale code and update the labels.