Interface IMenu.IManagedInterface
Represents the managed interface implemented by its unmanaged counterpart.
public interface IMenu.IManagedInterface : IUnmanagedInterface
- Inherited Members
Methods
AddCell(string, byte)
Adds a cell with text to a menu column.
int AddCell(string itemText, byte column)
Parameters
Returns
- int
The row index of the added cell.
Disable()
Disables the entire menu.
void Disable()
DisableRow(byte)
Disables a menu row, making it unselectable.
void DisableRow(byte row)
Parameters
rowbyteThe row index to disable.
GetCell(byte, byte)
Gets the text of a menu cell.
string? GetCell(byte column, byte row)
Parameters
Returns
- string
The cell text, or
nullif empty.
GetColumnCount()
Gets the number of columns in the menu.
int GetColumnCount()
Returns
- int
The number of columns (typically 1 or 2).
GetColumnHeader(byte)
Gets the header text of a menu column.
string? GetColumnHeader(byte column)
Parameters
columnbyteThe column index.
Returns
- string
The header text, or
nullif not set.
GetColumnWidths()
Gets the widths of the menu columns.
Vector2 GetColumnWidths()
Returns
GetPosition()
Gets the position of the menu.
ref Vector2 GetPosition()
Returns
GetRowCount(byte)
Gets the number of rows in a menu column.
int GetRowCount(byte column)
Parameters
columnbyteThe column index.
Returns
- int
The number of rows in the column.
HideForPlayer(IPlayer)
Hides the menu from a player.
void HideForPlayer(IPlayer player)
Parameters
playerIPlayerThe player to hide the menu from.
InitForPlayer(IPlayer)
Initializes the menu for a player (called before showing).
void InitForPlayer(IPlayer player)
Parameters
playerIPlayerThe player to initialize the menu for.
IsEnabled()
Checks if the menu is enabled.
bool IsEnabled()
Returns
- bool
trueif the menu is enabled; otherwise,false.
IsRowEnabled(byte)
Checks if a menu row is enabled.
bool IsRowEnabled(byte row)
Parameters
rowbyteThe row index to check.
Returns
- bool
trueif the row is enabled; otherwise,false.
SetColumnHeader(string, byte)
Sets the header text for a menu column.
void SetColumnHeader(string header, byte column)
Parameters
ShowForPlayer(IPlayer)
Shows the menu to a player.
void ShowForPlayer(IPlayer player)
Parameters
playerIPlayerThe player to show the menu to.