Skip to content

SettingsOptionButton ​

Inherits: Control

Modern option button component that works with any enum setting property

Variables ​

Stringproperty_name""
SettingsManagersettings_manager

Methods ​

voidinitialize( p_settings_manager: SettingsManager )

Signals ​

mouse_focus_changed( has_focus: bool, property_name: String, description: String ) ​

Emitted when the mouse enters or leaves the setting: whether it has the focus, the name of the setting and its text.

Constants ​

  • PackedStringArray LANGUAGE_SETTINGS = ["text_language", "voice_language"] - The settings that hold a language code instead of an enum: the options are the languages of the game (the Localization tab)

Variable descriptions ​

String property_name = "" ​

The property name in Settings (e.g. "window_mode", "vsync_mode")

SettingsManager settings_manager ​

SettingsManagerRef

Method descriptions ​

void initialize( p_settings_manager: SettingsManager ) ​

Call this after instantiation to set up the control