Skip to content

Commit 4ec260b

Browse files
Add "[Default]" functionality to action key (#777)
It will just use the "ui_accept" action when default is selected. For 2.0 I suggest just removing the Default option, but that woult be to much work for 1.4.
1 parent d9416f8 commit 4ec260b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

addons/dialogic/Other/DialogicClass.gd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ static func get_current_timeline():
360360

361361
# Returns a string with the action button set on the project settings
362362
static func get_action_button():
363-
return DialogicResources.get_settings_value('input', 'default_action_key', 'ui_accept')
363+
var action_button = DialogicResources.get_settings_value('input', 'default_action_key', 'ui_accept')
364+
return action_button if action_button != "[Default]" else "ui_accept"
364365

365366
################################################################################
366367
## NOT TO BE USED FROM OUTSIDE

0 commit comments

Comments
 (0)