Show / Hide Table of Contents

Class UpDownSpinner

Spinner for up/down number distribution.

Inheritance
Object
BaseScreenComponent
Panel
UpDownSpinner
Inherited Members
Panel.Components
Panel.EnableBorder
Panel.HasFocusOutlineColor
Panel.LostFocusOutlineColor
Panel.Outline
Panel.Draw()
Panel.SetBorderTextures(Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, FilterMode, Nullable<Border<Vector2Int>>)
Panel.GotFocus()
Panel.LostFocus()
Panel.ProcessHotkeySequences(HotkeySequence.KeyModifiers)
BaseScreenComponent.rectRestrictedRenderArea
BaseScreenComponent.restrictedRenderAreaCustomParent
BaseScreenComponent.restrictedRenderAreaCoordinateType
BaseScreenComponent.backgroundTexture
BaseScreenComponent.animatedBackgroundTextures
BaseScreenComponent.backgroundTextureLayout
BaseScreenComponent.OnKeyboardEvent
BaseScreenComponent.OnMouseEnter
BaseScreenComponent.OnMouseLeave
BaseScreenComponent.OnMouseMove
BaseScreenComponent.OnMouseDown
BaseScreenComponent.OnMouseUp
BaseScreenComponent.OnMouseClick
BaseScreenComponent.OnMouseDoubleClick
BaseScreenComponent.OnRightMouseDown
BaseScreenComponent.OnRightMouseUp
BaseScreenComponent.OnRightMouseClick
BaseScreenComponent.OnRightMouseDoubleClick
BaseScreenComponent.OnMiddleMouseDown
BaseScreenComponent.OnMiddleMouseUp
BaseScreenComponent.OnMiddleMouseClick
BaseScreenComponent.OnMiddleMouseDoubleClick
BaseScreenComponent.OnMouseScrollUp
BaseScreenComponent.OnMouseScrollDown
BaseScreenComponent.Enabled
BaseScreenComponent.UseFocus
BaseScreenComponent.OverridesHotkeySequences
BaseScreenComponent.Name
BaseScreenComponent.Tag
BaseScreenComponent.Position
BaseScreenComponent.Size
BaseScreenComponent.RootSize
BaseScreenComponent.Parent
BaseScreenComponent.Rectangle
BaseScreenComponent.HorizontalAlignment
BaseScreenComponent.VerticalAlignment
BaseScreenComponent.RestrictedRenderAreaCoordinateType
BaseScreenComponent.RectRestrictedRenderArea
BaseScreenComponent.RestrictedRenderAreaCustomParent
BaseScreenComponent.UseRestrictedRenderArea
BaseScreenComponent.CustomMousePosition
BaseScreenComponent.MousePosition
BaseScreenComponent.LastMousePosition
BaseScreenComponent.ScaledMousePosition
BaseScreenComponent.BackgroundColor
BaseScreenComponent.MouseOverBackgroundColor
BaseScreenComponent.BackgroundColorTexture
BaseScreenComponent.BackgroundTexture
BaseScreenComponent.BackgroundCroppedRect
BaseScreenComponent.AnimatedBackgroundTextures
BaseScreenComponent.AnimationDelayInSeconds
BaseScreenComponent.BackgroundTextureLayout
BaseScreenComponent.InteriorWidth
BaseScreenComponent.InteriorHeight
BaseScreenComponent.Scale
BaseScreenComponent.AutoSize
BaseScreenComponent.LocalScale
BaseScreenComponent.ToolTip
BaseScreenComponent.ToolTipText
BaseScreenComponent.SuppressToolTip
BaseScreenComponent.MinAutoScale
BaseScreenComponent.MaxAutoScale
BaseScreenComponent.MouseOverComponent
BaseScreenComponent.TopMargin
BaseScreenComponent.BottomMargin
BaseScreenComponent.LeftMargin
BaseScreenComponent.RightMargin
BaseScreenComponent.ScreenToLocal(Vector2)
BaseScreenComponent.ScreenToLocal(Rect)
BaseScreenComponent.TriggerMouseClick()
BaseScreenComponent.KeyboardEvent(Event)
BaseScreenComponent.MouseClick(Vector2)
BaseScreenComponent.RightMouseClick(Vector2)
BaseScreenComponent.MiddleMouseClick(Vector2)
BaseScreenComponent.MouseDoubleClick(Vector2)
BaseScreenComponent.RightMouseDoubleClick(Vector2)
BaseScreenComponent.MiddleMouseDoubleClick(Vector2)
BaseScreenComponent.MouseEnter()
BaseScreenComponent.MouseLeave(BaseScreenComponent)
BaseScreenComponent.MouseMove(Int32, Int32)
BaseScreenComponent.MouseScrollUp()
BaseScreenComponent.MouseScrollDown()
BaseScreenComponent.Dispose()
BaseScreenComponent.SetMargins(Margins, Int32)
BaseScreenComponent.OffsetFrom(BaseScreenComponent, Sides, Int32)
BaseScreenComponent.SetFocus()
BaseScreenComponent.HasFocus()
Namespace: DaggerfallWorkshop.Game.UserInterface
Assembly: Assembly-CSharp.dll
Syntax
public class UpDownSpinner : Panel, IDisposable

Constructors

| Improve this Doc View Source

UpDownSpinner()

Declaration
public UpDownSpinner()
| 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
Type Name Description
Rect spinnerScreenRect
Rect upButtonRect
Rect downButtonRect
Rect valueLabelRect
Int32 initialValue
Texture2D customBackground
Panel parentPanel

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
Type Description
Int32
| 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
Type Description
Int32
| 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
Type Description
Single
| Improve this Doc View Source

Value

Gets or sets current value directly.

Declaration
public int Value { get; set; }
Property Value
Type Description
Int32

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
Panel.Update()

Events

| Improve this Doc View Source

OnDownButtonClicked

Declaration
public event UpDownSpinner.OnDownButtonClickedHandler OnDownButtonClicked
Event Type
Type Description
UpDownSpinner.OnDownButtonClickedHandler
| Improve this Doc View Source

OnUpButtonClicked

Declaration
public event UpDownSpinner.OnUpButtonClickedHandler OnUpButtonClicked
Event Type
Type Description
UpDownSpinner.OnUpButtonClickedHandler
| Improve this Doc View Source

OnValueChanged

Declaration
public event UpDownSpinner.OnValueChangedHandler OnValueChanged
Event Type
Type Description
UpDownSpinner.OnValueChangedHandler
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX