Skip to main content

EditorSproutyDialogsOptionContainer

Inherits: VBoxContainer

Description

Component that display a dialog option in the options node.

Properties

TypeNameDefault
intoption_index0

Methods

Return TypeMethod
Stringget_dialog_key()
Dictionaryget_dialogs_text()
voidload_dialogs(dialogs: Dictionary)

Signals

signal modified(modified: bool)

Emitted when the text in any of the text boxes changes.


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 change the focus to another text box while the text editor is open.


signal option_removed(index: int)

Triggered when the option is removed.


Property Descriptions

var option_index : int = 0

Option position index.


Method Descriptions

func get_dialog_key() -> String

Return the dialog key for this option.


func get_dialogs_text() -> Dictionary

Returns dialog text and its translations.


func load_dialogs(dialogs: Dictionary) -> void

Load dialog and translations.