Class UpDownSpinner
Spinner for up/down number distribution.
Inheritance
UpDownSpinner
Inherited Members
Panel.SetBorderTextures(Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, FilterMode, Nullable<Border<Vector2Int>>)
Assembly: Assembly-CSharp.dll
Syntax
public class UpDownSpinner : Panel, IDisposable
Constructors
|
Improve this Doc
View Source
UpDownSpinner()
Declaration
|
Improve this Doc
View Source
UpDownSpinner(Rect, Rect, Rect, Rect, Int32, Texture2D, Panel)
Declaration
public UpDownSpinner(Rect spinnerScreenRect, Rect upButtonRect, Rect downButtonRect, Rect valueLabelRect, int initialValue = 0, Texture2D customBackground = null, Panel parentPanel = null)
Parameters
Properties
|
Improve this Doc
View Source
MaxValue
Gets or sets maximum value.
If both MinValue and MaxValue are 0 then owner of control must handle up/down events as required.
Declaration
public int MaxValue { get; set; }
Property Value
|
Improve this Doc
View Source
MinValue
Gets or sets minimum value.
If both MinValue and MaxValue are 0 then owner of control must handle up/down events as required.
Declaration
public int MinValue { get; set; }
Property Value
|
Improve this Doc
View Source
TickTimeInterval
TickTimeInterval is the length of time in seconds between inc/dec when holding mouse button on up or down buttons. (must be > 0.1)
Declaration
public float TickTimeInterval { get; set; }
Property Value
|
Improve this Doc
View Source
Value
Gets or sets current value directly.
Declaration
public int Value { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
SetMouseOverBackgroundColor(Color)
Declaration
public void SetMouseOverBackgroundColor(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
|
Improve this Doc
View Source
SetRange(Int32, Int32)
Declaration
public void SetRange(int minValue, int maxValue)
Parameters
Type |
Name |
Description |
Int32 |
minValue |
|
Int32 |
maxValue |
|
|
Improve this Doc
View Source
SetValue(Int32)
Declaration
public void SetValue(int value)
Parameters
Type |
Name |
Description |
Int32 |
value |
|
|
Improve this Doc
View Source
Update()
Declaration
public override void Update()
Overrides
Events
|
Improve this Doc
View Source
Declaration
public event UpDownSpinner.OnDownButtonClickedHandler OnDownButtonClicked
Event Type
|
Improve this Doc
View Source
Declaration
public event UpDownSpinner.OnUpButtonClickedHandler OnUpButtonClicked
Event Type
|
Improve this Doc
View Source
OnValueChanged
Declaration
public event UpDownSpinner.OnValueChangedHandler OnValueChanged
Event Type