|
VoltMod
C++23 framework for CS2 server plugins
|
#include <MenuPresets.hpp>
Public Attributes | |
| std::string | Title |
| std::function< void(PlayerRef target)> | Pick |
| std::function< std::shared_ptr< Menu >(PlayerRef target)> | Open |
| std::string | EmptyLabel |
| std::function< bool(PlayerRef target)> | Enabled |
Settings for a player picker. Selections use PlayerRef to handle disconnects safely.
Definition at line 19 of file MenuPresets.hpp.
| std::string VoltMod::PlayerPicker::EmptyLabel |
Shown as one disabled row when nobody is connected; empty appends nothing.
Definition at line 27 of file MenuPresets.hpp.
Dynamic enabled state for each player.
Definition at line 29 of file MenuPresets.hpp.
Optional submenu factory. Takes precedence over Pick.
Definition at line 25 of file MenuPresets.hpp.
Runs with the selected player.
Definition at line 23 of file MenuPresets.hpp.
| std::string VoltMod::PlayerPicker::Title |
Definition at line 21 of file MenuPresets.hpp.
Referenced by VoltMod::BuildPlayerPicker().