Class ActionRepeat
Definition
Namespace: StardewUI.Input
Assembly: StardewUI.dll
Configures the repeat rate of an action used in an ActionState<T>.
Inheritance
Object ⇦ ActionRepeat
Implements
IEquatable<ActionRepeat>
Members
Constructors
Name | Description |
---|---|
ActionRepeat(TimeSpan, TimeSpan?) | Configures the repeat rate of an action used in an ActionState<T>. |
Fields
Name | Description |
---|---|
Continuous | Configures an action to repeat continuously, i.e. to run again on every frame as long as the trigger keys are still held. |
Default | Default repetition setting suitable for most UI scenarios. |
None | Configures an action to never repeat, no matter how long the trigger keys are held. |
Properties
Name | Description |
---|---|
EqualityContract | |
InitialDelay | Initial delay after the first press, before any repetitions are allowed. |
RepeatInterval | The interval between repetitions of the action, while the key is held. |
Details
Constructors
ActionRepeat(TimeSpan, TimeSpan?)
Configures the repeat rate of an action used in an ActionState<T>.
Parameters
RepeatInterval
TimeSpan
The interval between repetitions of the action, while the key is held.
InitialDelay
Nullable<TimeSpan>
Initial delay after the first press, before any repetitions are allowed.
Fields
Continuous
Configures an action to repeat continuously, i.e. to run again on every frame as long as the trigger keys are still held.
Field Value
Default
Default repetition setting suitable for most UI scenarios.
Field Value
Remarks
Not perfectly consistent (nor intended to be consistent) with vanilla game settings, which are all over the place depending on which key/button is being considered.
None
Configures an action to never repeat, no matter how long the trigger keys are held.
Field Value
Properties
EqualityContract
Property Value
InitialDelay
Initial delay after the first press, before any repetitions are allowed.
Property Value
RepeatInterval
The interval between repetitions of the action, while the key is held.