Add addons
This commit is contained in:
parent
2c862b2235
commit
3367bad24f
527 changed files with 36197 additions and 0 deletions
19
Sprout/addons/dialogic/Events/Text/node_input_handler.gd
Normal file
19
Sprout/addons/dialogic/Events/Text/node_input_handler.gd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
@tool
|
||||
extends Node
|
||||
|
||||
class_name DialogicNode_InputHandler
|
||||
|
||||
################################################################################
|
||||
## INPUT
|
||||
################################################################################
|
||||
func _input(event:InputEvent) -> void:
|
||||
if Input.is_action_just_pressed(DialogicUtil.get_project_setting('dialogic/text/input_action', 'dialogic_default_action')):
|
||||
if Dialogic.paused: return
|
||||
|
||||
if Dialogic.current_state == Dialogic.states.IDLE:
|
||||
Dialogic.handle_next_event()
|
||||
|
||||
|
||||
elif Dialogic.current_state == Dialogic.states.SHOWING_TEXT:
|
||||
if DialogicUtil.get_project_setting('dialogic/text/skippable', true):
|
||||
Dialogic.Text.skip_text_animation()
|
||||
Loading…
Add table
Add a link
Reference in a new issue