Class OptionSlider
An OptionBase which stores a number (System.Single). It displays as a slider in menus and as such requires several values used by Godot.Range
[GlobalClass]
[ScriptPath("res://Core/Scenes/UI/Menus/OptionsTabs/GameplayTabResources/OptionSlider.cs")]
public class OptionSlider : OptionBase, IDisposable
- Inheritance
-
GodotObjectRefCountedResourceOptionSlider
- 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
AllowGreater
The Range option which disables the MaxValue allowing the stored value to be infinitely greater than what would be allowed otherwise.
[Export(PropertyHint.None, "")]
public bool AllowGreater
Field Value
AllowLesser
The Range option which disables the MinValue allowing the stored value to be infinitely lesser than what would be allowed otherwise.
[Export(PropertyHint.None, "")]
public bool AllowLesser
Field Value
DefaultValue
The default value of this option. Must be within the bounds specified otherwise
[Export(PropertyHint.None, "")]
public float DefaultValue
Field Value
MaxValue
The maximum value that this value is allowed to be
[Export(PropertyHint.None, "")]
public float MaxValue
Field Value
MinValue
The minimum value that this option is allowed to be
[Export(PropertyHint.None, "")]
public float MinValue
Field Value
StepValue
The amont to step by when using the slider. Set to 1.0 to effectively make this an integer. By default it is quite small to allow floats to be very granular
[Export(PropertyHint.None, "")]
public float StepValue