|
VoltMod
C++23 framework for CS2 server plugins
|
#include <MenuModel.hpp>
Public Attributes | |
| std::function< MenuRow(int slot)> | Describe |
| std::function< void(int slot, MenuSurface &surface)> | Activate |
| std::function< bool(int slot, int direction)> | Step |
| std::function< void(int slot)> | Commit |
Row callbacks. Only Describe is required.
Definition at line 111 of file MenuModel.hpp.
| std::function<void(int slot, MenuSurface& surface)> VoltMod::MenuItem::Activate |
Runs on E or a click.
Definition at line 117 of file MenuModel.hpp.
Referenced by VoltMod::MenuStack::Activate().
Applies a stepped value after input settles.
Definition at line 123 of file MenuModel.hpp.
Describes the row's current state. Called on every redraw.
Definition at line 114 of file MenuModel.hpp.
Referenced by VoltMod::BuildConfirmMenu(), VoltMod::Internal::ChoiceItem(), VoltMod::ButtonRow::ToItem(), VoltMod::ToggleRow::ToItem(), VoltMod::InputRow::ToItem(), VoltMod::SubmenuRow::ToItem(), and VoltMod::TextRow::ToItem().
Runs on A/D or a stepper. Return true to consume the input.
Definition at line 120 of file MenuModel.hpp.