API reference
Class UiActions
Namespace: MicroEngine.UI
Assembly: MicroEngine.UI.dll
Guide: UI widgets
The actions engine widgets answer to. A member left null (the default) is the input map’s own name for it
(Names), read at every update: a game that renames confirm with
ActionNames keeps working widgets, and a gameplay action that happens to be called confirm
never presses a button. Set a member to give the widgets an action of the game’s own.
public sealed record UiActions : IEquatable<UiActions>Inheritance
Implements
Constructors
UiActions()
public UiActions()Properties
Cancel
Raises Cancelled; null is Cancel.
public string? Cancel { get; init; }Property Value
Confirm
Presses the focused button or submits the focused text field; null is Confirm.
public string? Confirm { get; init; }Property Value
Default
The map’s names for every action (all members null).
public static UiActions Default { get; }Property Value
Down
Moves the focus down; null is Down.
public string? Down { get; init; }Property Value
Left
Moves the focus left, or the caret of a text field; null is Left.
public string? Left { get; init; }Property Value
Right
Moves the focus right, or the caret of a text field; null is Right.
public string? Right { get; init; }Property Value
Up
Moves the focus up; null is Up.
public string? Up { get; init; }Property Value
Methods
<Clone>$()
public UiActions <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
obj object?
Returns
Equals(UiActions?)
public bool Equals(UiActions? other)Parameters
other UiActions?
Returns
GetHashCode()
public override int GetHashCode()Returns
NameOf(UiAction, ActionNames)
The action action is read from on names.
public string NameOf(UiAction action, ActionNames names)Parameters
action UiAction
names ActionNames
Returns
ToString()
public override string ToString()Returns
Operators
operator ==(UiActions?, UiActions?)
public static bool operator ==(UiActions? left, UiActions? right)Parameters
left UiActions?
right UiActions?
Returns
operator !=(UiActions?, UiActions?)
public static bool operator !=(UiActions? left, UiActions? right)Parameters
left UiActions?
right UiActions?