Skip to content
Discussion options

You must be logged in to vote

Hi you will find all the relevant functions in the DialogNode, which is massive, so it's very understandable you didn't know where to begin.

The function that calls the sound is the _on_option_focused function (around line 1220).

You will want to call this function when the button get's focused, so you will want to connect the buttons 'focus_entered' signal to that function when the choice button is created.

You can do so in the add_choice_button function (around line 1170 or so).

It should look something like this I think:
button.connect('focus_entered', self, '_on_option_focused')

Hope this helps.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nookstray
Comment options

@nookstray
Comment options

Answer selected by nookstray
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants