Class HorizontalSlider
Inheritance
HorizontalSlider
Assembly: Assembly-CSharp.dll
Syntax
public class HorizontalSlider : BaseScreenComponent, IDisposable
Constructors
|
Improve this Doc
View Source
HorizontalSlider()
Declaration
public HorizontalSlider()
Properties
|
Improve this Doc
View Source
DisplayUnits
The maximum number of visible units (pixels, rows, etc.) at any one time.
Declaration
public int DisplayUnits { get; set; }
Property Value
|
Improve this Doc
View Source
DraggingThumb
Gets flag set when user dragging thumb.
Declaration
public bool DraggingThumb { get; }
Property Value
|
Improve this Doc
View Source
Indicator
Indicator for this slider.
Declaration
public TextLabel Indicator { get; }
Property Value
|
Improve this Doc
View Source
IndicatorOffset
Distance from slider. Negative is on the left.
Declaration
public int IndicatorOffset { set; }
Property Value
|
Improve this Doc
View Source
The current slider position in units.
Declaration
public int ScrollIndex { get; set; }
Property Value
|
Improve this Doc
View Source
TintColor
Tint color of the slider.
Declaration
public Color? TintColor { get; set; }
Property Value
|
Improve this Doc
View Source
TotalUnits
The total number of units (pixels, rows, etc.) represented by this slider.
Declaration
public int TotalUnits { get; set; }
Property Value
|
Improve this Doc
View Source
Value
Current value on the slider.
Declaration
public int Value { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Draw()
Declaration
public override void Draw()
Overrides
|
Improve this Doc
View Source
GetValue()
Declaration
Returns
|
Improve this Doc
View Source
MouseClick(Vector2)
Declaration
protected override void MouseClick(Vector2 clickPosition)
Parameters
Type |
Name |
Description |
Vector2 |
clickPosition |
|
Overrides
|
Improve this Doc
View Source
Declaration
protected override void MouseScrollDown()
Overrides
|
Improve this Doc
View Source
Declaration
protected override void MouseScrollUp()
Overrides
|
Improve this Doc
View Source
RemoveIndicator()
Declaration
public void RemoveIndicator()
|
Improve this Doc
View Source
Reset(Int32, Int32, Int32)
Resets slider properties without triggering events.
Declaration
public void Reset(int displayUnits = 0, int totalUnits = 0, int scrollIndex = 0)
Parameters
Type |
Name |
Description |
Int32 |
displayUnits |
|
Int32 |
totalUnits |
|
Int32 |
scrollIndex |
|
|
Improve this Doc
View Source
SetIndicator(Int32, Int32, Int32)
Draws a numeric indicator that show the value on slider.
Declaration
public void SetIndicator(int min, int max, int start)
Parameters
|
Improve this Doc
View Source
SetIndicator(Single, Single, Single)
Draws a numeric indicator that show the value on slider with one decimal digit.
Declaration
public void SetIndicator(float min, float max, float start)
Parameters
|
Improve this Doc
View Source
SetIndicator(String[], Int32)
Draws a text indicator that show selected option on slider.
Declaration
public void SetIndicator(string[] items, int selected)
Parameters
|
Improve this Doc
View Source
SetValue(Single)
Declaration
public void SetValue(float value)
Parameters
Type |
Name |
Description |
Single |
value |
|
|
Improve this Doc
View Source
Update()
Declaration
public override void Update()
Overrides
Events
|
Improve this Doc
View Source
Declaration
public event HorizontalSlider.OnScrollHandler OnScroll
Event Type