Class Paginator
Navigation controls for pages or listed items.
Inherited Members
Namespace: DaggerfallWorkshop.Game.UserInterface
Assembly: Assembly-CSharp.dll
Syntax
public class Paginator : Panel, IDisposable
Constructors
| Improve this Doc View SourcePaginator(Int32)
Create a control for pages or listed items.
Declaration
public Paginator(int total = 1)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | total |
Properties
| Improve this Doc View SourceArrowColor
Color of previous/next arrows.
Declaration
public Color ArrowColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
DisabledArrowColor
Color of previous/next arrows on first/last position.
Declaration
public Color DisabledArrowColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
IsFirst
Is first selected?
Declaration
public bool IsFirst { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
IsLast
Is last selected?
Declaration
public bool IsLast { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Selected
Selected index.
Declaration
public int Selected { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
TextColor
Color of index label.
Declaration
public Color TextColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Total
Number of positions.
Declaration
public int Total { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Methods
| Improve this Doc View SourceFirst()
Move to first position.
Declaration
public void First()
Last()
Move to last position.
Declaration
public void Last()
Next()
Move to next position.
Declaration
public void Next()
Previous()
Move to previous position.
Declaration
public void Previous()
SetScale(Single, Single)
Set text scale and distance between arrows.
Declaration
public void SetScale(float textScale = 1F, float arrowSpacing = 30F)
Parameters
| Type | Name | Description |
|---|---|---|
| Single | textScale | Scale factor of text. |
| Single | arrowSpacing | Distance between arrows. |
Sync(Int32)
Select position without raising events.
Declaration
public void Sync(int selected)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | selected |
Events
| Improve this Doc View SourceOnSelected
Declaration
public event Paginator.OnSelectedHandler OnSelected
Event Type
| Type | Description |
|---|---|
| Paginator.OnSelectedHandler |