VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::MenuRow Struct Reference

#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

Detailed Description

Current display state of a menu row. Text is unescaped.

Definition at line 37 of file MenuModel.hpp.

Member Data Documentation

◆ Changed

bool VoltMod::MenuRow::Changed = false

Definition at line 56 of file MenuModel.hpp.

Referenced by VoltMod::MenuStack::Describe(), and VoltMod::RowText().

◆ Enabled

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().

◆ Icon

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().

◆ Kind

◆ Label

std::string VoltMod::MenuRow::Label

Definition at line 39 of file MenuModel.hpp.

Referenced by VoltMod::RowText(), and VoltMod::PanoramaMenuLayout::SetRow().

◆ Pending

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().

◆ Selectable

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().

◆ State

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().

◆ Steppable

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().

◆ Value

std::string VoltMod::MenuRow::Value

The documentation for this struct was generated from the following file: