Fix CCS scene-wide dialogue clicks
This commit is contained in:
@@ -46,7 +46,6 @@ var dialogue_layout_generation := 0
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
dialogue_bubble.gui_input.connect(_on_dialogue_bubble_input)
|
||||
previous_page_button.pressed.connect(_change_choice_page.bind(-1))
|
||||
next_page_button.pressed.connect(_change_choice_page.bind(1))
|
||||
_update_clock()
|
||||
@@ -219,17 +218,7 @@ func complete_response_transition() -> void:
|
||||
show_dialogue_choices(choices)
|
||||
|
||||
|
||||
func _on_dialogue_bubble_input(event: InputEvent) -> void:
|
||||
if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT and event.pressed:
|
||||
advance_dialogue()
|
||||
accept_event()
|
||||
elif event is InputEventKey and event.pressed and not event.echo \
|
||||
and event.keycode in [KEY_ENTER, KEY_KP_ENTER, KEY_SPACE]:
|
||||
advance_dialogue()
|
||||
accept_event()
|
||||
|
||||
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
func _input(event: InputEvent) -> void:
|
||||
if not dialogue_bubble.visible:
|
||||
return
|
||||
var should_advance := false
|
||||
|
||||
Reference in New Issue
Block a user