addons_gato_tts_ui_option_selector.gd

Inherits: HBoxContainer

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Description

This node is a selector can be configured to choose between multiple options with a controller.

Properties

Array[StringName]

options

[]

Label

label

<unknown>

Timer

joystick_cooldown

<unknown>

Methods


Signals

selection_changed(option: StringName) 🔗

Emitted when the selected option is changed. The parameter option is the name of the selected option.


Property Descriptions

Array[StringName] options = [] 🔗

  • void @options_setter(value: Array[StringName])

List of all possible options in this selector. The list is not changed by the node to allow the developer to order the list as needed. If you want it sorted, sort it before setting this value.


Label label = <unknown> 🔗

A reference to the Label node that shows the currently selected option.


Timer joystick_cooldown = <unknown> 🔗

Timer that limits the speed of this selector when using a joystick. This is used because otherwise Godot logs dozens of joystick motion events every second and it’s impossible to select the value you want.


Method Descriptions