- Namespace
- CounterStrikeSharp.API.Modules.Menu
- Assembly
- CounterStrikeSharp.API.dll
public abstract class BaseMenuInstance : IMenuInstance
- Inheritance
-
object
BaseMenuInstance
- Implements
-
- Derived
-
Constructors
protected BaseMenuInstance(CCSPlayerController player, IMenu menu)
Parameters
player
CCSPlayerController
menu
IMenu
Properties
public bool CloseOnSelect { get; set; }
Property Value
- bool
public int CurrentOffset { get; set; }
Property Value
- int
protected bool HasExitButton { get; }
Property Value
- bool
protected bool HasNextButton { get; }
Property Value
- bool
protected bool HasPrevButton { get; }
Property Value
- bool
public IMenu Menu { get; }
Property Value
- IMenu
protected virtual int MenuItemsPerPage { get; }
Property Value
- int
public virtual int NumPerPage { get; }
Property Value
- int
public int Page { get; set; }
Property Value
- int
public CCSPlayerController Player { get; }
Property Value
- CCSPlayerController
public Stack<int> PrevPageOffsets { get; }
Property Value
- Stack<int>
Methods
public virtual void Close()
public virtual void Display()
public void OnKeyPress(CCSPlayerController player, int key)
Parameters
player
CCSPlayerController
key
int
public virtual void Reset()