DialogueNodes icon indicating copy to clipboard operation
DialogueNodes copied to clipboard

DialogueBox closes prematurely when `skip_input_action` is set to "ui_accept"

Open Caffeinix opened this issue 7 months ago • 0 comments

Although the default value for skip_input_action is "ui_cancel", it's more typical in RPGs to make spamming the "next"/"accept" button skip the animation of the text into the dialogue box. Unfortunately, if I set skip_input_action to "ui_accept", it also closes the dialogue box as soon as the text appears and before there's any chance of reading it. I suspect this is because the options become focused when that happens, and something in Godot's Button class is using is_action_pressed instead of is_action_just_pressed, so it automatically selects the option. It would be really nice if there was some way of guarding against that!

Workarounds also welcome. :)

Caffeinix avatar Jul 09 '24 03:07 Caffeinix