EditorSproutyDialogsOptionContainer
Inherits: VBoxContainer
Description
Component that display a dialog option in the options node.
Properties
| Type | Name | Default |
|---|---|---|
| int | option_index | 0 |
Methods
| Return Type | Method |
|---|---|
| String | get_dialog_key() |
| Dictionary | get_dialogs_text() |
| void | load_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.