|
VoltMod
C++23 framework for CS2 server plugins
|
Functions | |
| CursorRows | Rows (Menu *menu, int slot) |
| int | Step (const CursorRows &rows, int index, int step) |
| int | First (const CursorRows &rows) |
| int | JumpPage (const CursorRows &rows, int index, int rowsPerPage, int delta) |
| int VoltMod::MenuCursor::First | ( | const CursorRows & | rows | ) |
First selectable row.
Definition at line 49 of file MenuCursor.cpp.
References VoltMod::CursorRows::Count, VoltMod::IsSelectable(), and Step().
| int VoltMod::MenuCursor::JumpPage | ( | const CursorRows & | rows, |
| int | index, | ||
| int | rowsPerPage, | ||
| int | delta ) |
Moves index by delta pages while preserving its page offset.
Definition at line 59 of file MenuCursor.cpp.
References VoltMod::CursorRows::Count, VoltMod::IsSelectable(), VoltMod::PageCount(), and VoltMod::WrapIndex().
| CursorRows VoltMod::MenuCursor::Rows | ( | Menu * | menu, |
| int | slot ) |
The rows of menu as the cursor sees them for slot: how many, and which it may land on.
Definition at line 19 of file MenuCursor.cpp.
References VoltMod::IsRowActionable(), and VoltMod::Menu::Items.
| int VoltMod::MenuCursor::Step | ( | const CursorRows & | rows, |
| int | index, | ||
| int | step ) |
index moved by step, wrapping over rows and skipping what it may not land on.
Definition at line 31 of file MenuCursor.cpp.
References VoltMod::CursorRows::Count, VoltMod::IsSelectable(), and VoltMod::WrapIndex().
Referenced by First().