|
VoltMod
C++23 framework for CS2 server plugins
|
Functions | |
| 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 37 of file MenuCursor.cpp.
References VoltMod::IsSelectable(), VoltMod::ReadFile(), 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 47 of file MenuCursor.cpp.
References VoltMod::IsSelectable(), VoltMod::PageCount(), VoltMod::ReadFile(), and VoltMod::WrapIndex().
| 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 19 of file MenuCursor.cpp.
References VoltMod::IsSelectable(), VoltMod::ReadFile(), and VoltMod::WrapIndex().
Referenced by First().