DialogueResponsesMenu
Use this in your custom balloon for a simple dialogue responses menu for when dialogue has responses to choose from. The example dialogue balloon already uses it.
[!NOTE] When adding nodes from the "Add Child Node" button Godot will attach the GDScript version of the node which is fine for most cases. If you specifically need the C# version then you'll have to attach the script manually.
Signals
response_focused
signal response_focused(response: Variant)[Signal] public delegate void ResponseFocusedEventHandler(Variant response);Emitted when a response is focused.
response_selected
signal response_selected(response: Variant)[Signal] public delegate void ResponseSelectedEventHandler(DialogueResponse response);Emitted when a response is selected.
Properties
response_template
var response_template: Control[Export] public Control ResponseTemplate;Optionally specify a control to duplicate for each response.
next_action
var next_action: StringName = &""[Export] public StringName NextAction = "";The action for accepting a response (is possibly overridden by parent dialogue balloon).
auto_configure_focus
var auto_configure_focus: bool = true[Export] public bool AutoConfigureFocus = true;Automatically set up focus neighbours when the responses list changes.
auto_focus_first_item
var auto_focus_first_item: bool = true[Export] public bool AutoFocusFirstItem = true;Automatically focus the first item when showing.
hide_failed_responses
var hide_failed_responses: bool = false[Export] public bool HideFailedResponses = false;Hide any responses where a response's is_allowed is false.
responses
responses: Array = []public Godot.Collections.Array<DialogueResponse> ResponsesThe list of dialogue responses.
Methods
get_menu_items
func get_menu_items() -> Arraypublic Array<Control> GetMenuItems()Get the selectable items in the menu.
configure_focus
func configure_focus() -> voidpublic void ConfigureFocus()Prepare the menu for keyboard and mouse navigation.