Class OptionComboSelect
An OptionBase that stores a collection of strings as well as the index that is selected. This is used when you want to have multiple options for a single value. It does require some additional parsing, but it should be easier than starting from nothing!
[GlobalClass]
[ScriptPath("res://Core/Scenes/UI/Menus/OptionsTabs/GameplayTabResources/OptionComboSelect.cs")]
public class OptionComboSelect : OptionBase, IDisposable
- Inheritance
-
GodotObjectRefCountedResourceOptionComboSelect
- Implements
- Inherited Members
-
Resource._GetRid()Resource.GetRid()Resource.GetLocalScene()Resource.SetupLocalToScene()Resource.EmitChanged()Resource.ResourceLocalToSceneResource.ResourcePathResource.ResourceNameResource.ChangedResource.SetupLocalToSceneRequestedRefCounted.InitRef()RefCounted.Reference()RefCounted.Unreference()RefCounted.GetReferenceCount()GodotObject.NotificationPostinitializeGodotObject.NotificationPredeleteGodotObject.NativeInstanceGodotObject.ScriptChangedGodotObject.PropertyListChanged
Fields
DefaultSelection
The default index to select when no data is loaded from disk.
[Export(PropertyHint.None, "")]
public int DefaultSelection
Field Value
Options
The array of options. These are simultaneously the value shown in-menu as well as the values stored in GameplaySettings
[Export(PropertyHint.None, "")]
public string[] Options
Field Value
- string[]