Table of Contents

Class OptionComboSelect

Namespace
Squiggles.Core.Scenes.UI.Menus.Gameplay
Assembly
SquigglesCommon4X.dll

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
GodotObject
RefCounted
Resource
OptionComboSelect
Implements
Inherited Members
Resource._GetRid()
Resource.GetRid()
Resource.GetLocalScene()
Resource.SetupLocalToScene()
Resource.EmitChanged()
Resource.ResourceLocalToScene
Resource.ResourcePath
Resource.ResourceName
Resource.Changed
Resource.SetupLocalToSceneRequested
RefCounted.InitRef()
RefCounted.Reference()
RefCounted.Unreference()
RefCounted.GetReferenceCount()
GodotObject.NotificationPostinitialize
GodotObject.NotificationPredelete
GodotObject.NativeInstance
GodotObject.ScriptChanged
GodotObject.PropertyListChanged

Fields

DefaultSelection

The default index to select when no data is loaded from disk.

[Export(PropertyHint.None, "")]
public int DefaultSelection

Field Value

int

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[]