|
VoltMod
C++23 framework for CS2 server plugins
|
Public Member Functions | |
| int | Selected (int slot) const |
| void | Select (int slot, int index) |
| void | Apply (int slot) const |
| bool | Step (int slot, int direction) |
Public Attributes | |
| std::vector< std::string > | Choices |
| std::function< void(int slot, int index)> | Commit |
| std::optional< ChoiceIndex > | Bind |
| int | Own |
One shared copy, so every callback of the open menu sees the same selection.
Definition at line 130 of file MenuBuilder.cpp.
|
inline |
Definition at line 159 of file MenuBuilder.cpp.
References Choices, Commit, and Selected().
|
inline |
|
inline |
|
inline |
Definition at line 167 of file MenuBuilder.cpp.
References Choices, Select(), Selected(), and VoltMod::WrapIndex().
| std::optional<ChoiceIndex> VoltMod::ChoiceState::Bind |
Definition at line 134 of file MenuBuilder.cpp.
Referenced by Select(), and Selected().
| std::vector<std::string> VoltMod::ChoiceState::Choices |
Definition at line 132 of file MenuBuilder.cpp.
Referenced by Apply(), Selected(), and Step().
| std::function<void(int slot, int index)> VoltMod::ChoiceState::Commit |
Definition at line 133 of file MenuBuilder.cpp.
Referenced by Apply().
| int VoltMod::ChoiceState::Own |
Definition at line 135 of file MenuBuilder.cpp.
Referenced by Select(), and Selected().