GenericMenuInfo<T>

Namespace: Murder.Core.Input
Assembly: Murder.dll

public sealed struct GenericMenuInfo<T>

⭐ Constructors

public GenericMenuInfo<T>(T[] options)

Parameters
options T[]

⭐ Properties

Canceled

public bool Canceled;

Returns
bool

Disabled

public bool Disabled;

Returns
bool

JustMoved

public bool JustMoved;

Returns
bool

LastMoved

public float LastMoved;

Returns
float

LastPressed

public float LastPressed;

Returns
float

Length

public int Length { get; }

Number of options in this menu

Returns
int

Options

public T[] Options;

Returns
T[]

Overflow

public int Overflow;

Returns
int

PreviousSelection

public int PreviousSelection;

Returns
int

Scroll

public int Scroll;

Returns
int

Selection

public int Selection { get; private set; }

Returns
int

Sounds

public MenuSounds Sounds;

Returns
MenuSounds

VisibleItems

public int VisibleItems;

Number of visible options on the screen, 8 is the default.

Returns
int

⭐ Methods

NextAvailableOption(int, int)

public int NextAvailableOption(int option, int direction)

Parameters
option int

direction int

Returns
int

Select(int, float)

public void Select(int index, float now)

Parameters
index int
now float

Select(int)

public void Select(int index)

Parameters
index int