|
VoltMod
C++23 framework for CS2 server plugins
|
#include <MenuModel.hpp>
Public Attributes | |
| std::string | Label |
| std::string | Value |
| MenuRowKind | Kind = MenuRowKind::Button |
| bool | Enabled = true |
| bool | Selectable = true |
| bool | Steppable = false |
| std::optional< bool > | State |
| std::string | Icon |
| bool | Pending = false |
| bool | Changed = false |
Current display state of a menu row. Text is unescaped.
Definition at line 37 of file MenuModel.hpp.
Definition at line 56 of file MenuModel.hpp.
Disabled rows are drawn greyed out, skipped by the cursor, and refuse activation.
Definition at line 44 of file MenuModel.hpp.
Referenced by VoltMod::MenuStack::Describe(), VoltMod::IsRowActionable(), and VoltMod::RenderMenuHtml().
| std::string VoltMod::MenuRow::Icon |
An icon name for a surface that draws icons; center HTML ignores it. Empty for none.
Definition at line 52 of file MenuModel.hpp.
| MenuRowKind VoltMod::MenuRow::Kind = MenuRowKind::Button |
Definition at line 42 of file MenuModel.hpp.
| std::string VoltMod::MenuRow::Label |
Definition at line 39 of file MenuModel.hpp.
Referenced by VoltMod::BuildConfirmMenu().
Set by the menu service, not by MenuItem::Describe.
Definition at line 55 of file MenuModel.hpp.
Whether the cursor may land on the row.
Definition at line 46 of file MenuModel.hpp.
| std::optional<bool> VoltMod::MenuRow::State |
Toggle state, used to render a switch or supply the default value text.
Definition at line 50 of file MenuModel.hpp.
Whether A/D or a row stepper changes the value instead of paging.
Definition at line 48 of file MenuModel.hpp.
| std::string VoltMod::MenuRow::Value |
Empty when the row has no value.
Definition at line 41 of file MenuModel.hpp.