|
VoltMod
C++23 framework for CS2 server plugins
|
#include <MenuBuilder.hpp>
Public Member Functions | |
| MenuItem | ToItem () const |
Public Attributes | |
| std::string | Label |
| std::string | Prompt |
| std::function< std::string(int slot)> | Get |
| std::function< bool(int slot, std::string_view text)> | Set |
| int | MaxLength = 64 |
| EnabledCondition | Enabled |
A free-text row. E pauses the menu and routes the player's next chat line to Set; a false return re-prompts, and so does text longer than MaxLength. R cancels.
Definition at line 127 of file MenuBuilder.hpp.
| MenuItem VoltMod::InputRow::ToItem | ( | ) | const |
Definition at line 82 of file MenuBuilder.cpp.
References VoltMod::MenuItem::Describe, VoltMod::DescribeRow(), Enabled, Get, VoltMod::Input, Label, MaxLength, Prompt, VoltMod::ReadFile(), Set, and VoltMod::WhenEnabled().
| EnabledCondition VoltMod::InputRow::Enabled |
Definition at line 134 of file MenuBuilder.hpp.
Referenced by ToItem().
Definition at line 131 of file MenuBuilder.hpp.
Referenced by ToItem().
| std::string VoltMod::InputRow::Label |
Definition at line 129 of file MenuBuilder.hpp.
Referenced by VoltMod::BuildDurationMenu(), and ToItem().
| int VoltMod::InputRow::MaxLength = 64 |
Definition at line 133 of file MenuBuilder.hpp.
Referenced by ToItem().
| std::string VoltMod::InputRow::Prompt |
Definition at line 130 of file MenuBuilder.hpp.
Referenced by ToItem().
Definition at line 132 of file MenuBuilder.hpp.
Referenced by ToItem().