Fix CCS scene-wide dialogue clicks

This commit is contained in:
hz
2026-08-06 23:41:42 -05:00
parent 6f81e5af62
commit a4115f4971
3 changed files with 8 additions and 19 deletions
+1 -12
View File
@@ -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