First work on dialogic, resized guild, and started implementing portraits.
This commit is contained in:
48
addons/dialogic/Modules/WaitInput/event_wait_input.gd
Normal file
48
addons/dialogic/Modules/WaitInput/event_wait_input.gd
Normal file
@@ -0,0 +1,48 @@
|
||||
@tool
|
||||
class_name DialogicWaitInputEvent
|
||||
extends DialogicEvent
|
||||
|
||||
## Event that waits for input before continuing.
|
||||
|
||||
var hide_textbox := true
|
||||
|
||||
################################################################################
|
||||
## EXECUTE
|
||||
################################################################################
|
||||
|
||||
func _execute() -> void:
|
||||
if hide_textbox:
|
||||
dialogic.Text.hide_textbox()
|
||||
dialogic.current_state = DialogicGameHandler.States.IDLE
|
||||
dialogic.Inputs.auto_skip.enabled = false
|
||||
await dialogic.Inputs.dialogic_action
|
||||
finish()
|
||||
|
||||
################################################################################
|
||||
## INITIALIZE
|
||||
################################################################################
|
||||
|
||||
func _init() -> void:
|
||||
event_name = "Wait for Input"
|
||||
set_default_color('Color5')
|
||||
event_category = "Flow"
|
||||
event_sorting_index = 12
|
||||
|
||||
|
||||
################################################################################
|
||||
## SAVING/LOADING
|
||||
################################################################################
|
||||
|
||||
func get_shortcode() -> String:
|
||||
return "wait_input"
|
||||
|
||||
func get_shortcode_parameters() -> Dictionary:
|
||||
return {
|
||||
#param_name : property_info
|
||||
"hide_text" : {"property": "hide_textbox", "default": true},
|
||||
}
|
||||
|
||||
|
||||
func build_event_editor() -> void:
|
||||
add_header_label('Wait for input')
|
||||
add_body_edit('hide_textbox', ValueType.BOOL, {'left_text':'Hide text box:'})
|
||||
Reference in New Issue
Block a user