Class SliderComboAdapter
A C# adapter for the GDScript class SliderCombo ("res://Core/Scenes/UI/Menus/OptionsTabs/SliderCombo.gd"). Since interfacing with GDScript directly can be a bit of a pain, and I use the SliderCombo EVERYWHERE, this adapter takes in a node and provides a series of properties that allow get/set operations on the node, provided it is indeed an instance of the SliderCombo GDScript class.
public class SliderComboAdapter
- Inheritance
-
SliderComboAdapter
- Inherited Members
Constructors
SliderComboAdapter(Node)
Creates a new SliderComboAdapter
public SliderComboAdapter(Node node)
Parameters
node
Nodethe node being passed in. Should be an instance of SliderCombo for this to work.
Exceptions
- InvalidCastException
Throws an exception if the passed in node is not valid as a SliderCombo GDScript class
Fields
PATH_SLIDER_COMBO_GD
private const string PATH_SLIDER_COMBO_GD = "res://Core/Scenes/UI/Menus/OptionsTabs/SliderCombo.gd"
Field Value
_node
private readonly Node _node
Field Value
- Node
Properties
MaxValue
Handles the "max_value" property of ComboSlider
public float MaxValue { get; set; }
Property Value
MinValue
Handles the "min_value" property of ComboSlider
public float MinValue { get; set; }
Property Value
SliderValue
Handles the "slider_value" property of ComboSlider
public float SliderValue { get; set; }
Property Value
StepValue
Handles the "step_value" property of ComboSlider
public float StepValue { get; set; }
Property Value
Text
Handles the "text" property of ComboSlider
public string Text { get; set; }