2 class_name DialogicWaitInputEvent
5 ## Event that waits for input before continuing.
7 var hide_textbox := true
9 ################################################################################
11 ################################################################################
13 func _execute() -> void:
15 dialogic.Text.hide_textbox()
16 dialogic.current_state = DialogicGameHandler.States.IDLE
17 dialogic.Inputs.auto_skip.enabled = false
18 await dialogic.Inputs.dialogic_action
21 ################################################################################
23 ################################################################################
26 event_name = "Wait for Input"
27 set_default_color('Color5')
28 event_category = "Flow"
29 event_sorting_index = 12
32 ################################################################################
34 ################################################################################
36 func get_shortcode() -> String:
39 func get_shortcode_parameters() -> Dictionary:
41 #param_name : property_info
42 "hide_text" : {"property": "hide_textbox", "default": true},
46 func build_event_editor() -> void:
47 add_header_label('Wait for input')
48 add_body_edit('hide_textbox', ValueType.BOOL, {'left_text':'Hide text box:'})