Skip to content

Commit

Permalink
Added focus_choice_button_node function to Choices subsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
DJLink authored Dec 28, 2024
1 parent 7e38e1d commit 63d10e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/dialogic/Modules/Choice/subsystem_choices.gd
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ func show_current_question(instant:=true) -> void:
if missing_button:
printerr("[Dialogic] The layout you are using doesn't have enough Choice Buttons for the choices you are trying to display.")


func focus_choice_button_node(button_index:int) -> void:
var node: DialogicNode_ChoiceButton = get_choice_button_node(button_index)
if node:
node.grab_focus();

func get_choice_button_node(button_index:int) -> DialogicNode_ChoiceButton:
var idx := 1
Expand Down

0 comments on commit 63d10e5

Please sign in to comment.