|
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.
| bool VoltMod::MenuRow::Changed = false |
Definition at line 56 of file MenuModel.hpp.
Referenced by VoltMod::MenuStack::Describe(), and VoltMod::RowText().
| bool VoltMod::MenuRow::Enabled = true |
Disabled rows are drawn greyed out, skipped by the cursor, and refuse activation.
Definition at line 44 of file MenuModel.hpp.
Referenced by VoltMod::IsRowActionable(), VoltMod::RenderItems(), and VoltMod::PanoramaMenuLayout::SetRow().
| 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.
Referenced by VoltMod::SubmenuRow::ToItem().
| MenuRowKind VoltMod::MenuRow::Kind = MenuRowKind::Button |
Definition at line 42 of file MenuModel.hpp.
Referenced by VoltMod::MenuStack::Describe(), VoltMod::RowText(), and VoltMod::PanoramaMenuLayout::SetRow().
| std::string VoltMod::MenuRow::Label |
Definition at line 39 of file MenuModel.hpp.
Referenced by VoltMod::RowText(), and VoltMod::PanoramaMenuLayout::SetRow().
| bool VoltMod::MenuRow::Pending = false |
Set by the menu service, not by MenuItem::Describe.
Definition at line 55 of file MenuModel.hpp.
Referenced by VoltMod::MenuStack::Describe(), VoltMod::RowText(), and VoltMod::PanoramaMenuLayout::SetRow().
| bool VoltMod::MenuRow::Selectable = true |
Whether the cursor may land on the row.
Definition at line 46 of file MenuModel.hpp.
Referenced by VoltMod::IsRowActionable(), VoltMod::RenderItems(), and VoltMod::PanoramaMenuLayout::SetRow().
| 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.
Referenced by VoltMod::MenuStack::Describe(), VoltMod::PanoramaMenuLayout::SetRow(), and VoltMod::ToggleRow::ToItem().
| bool VoltMod::MenuRow::Steppable = false |
Whether A/D or a row stepper changes the value instead of paging.
Definition at line 48 of file MenuModel.hpp.
Referenced by VoltMod::Internal::ChoiceItem(), VoltMod::PanoramaMenuLayout::SetRow(), and VoltMod::ToggleRow::ToItem().
| std::string VoltMod::MenuRow::Value |
Empty when the row has no value.
Definition at line 41 of file MenuModel.hpp.
Referenced by VoltMod::Internal::ChoiceItem(), VoltMod::MenuStack::Describe(), VoltMod::RowText(), VoltMod::PanoramaMenuLayout::SetRow(), and VoltMod::InputRow::ToItem().