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.

◆ 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::MenuStack::Describe(), VoltMod::IsRowActionable(), and VoltMod::RenderMenuHtml().

◆ 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.

◆ Kind

MenuRowKind VoltMod::MenuRow::Kind = MenuRowKind::Button

Definition at line 42 of file MenuModel.hpp.

◆ Label

std::string VoltMod::MenuRow::Label

Definition at line 39 of file MenuModel.hpp.

Referenced by VoltMod::BuildConfirmMenu().

◆ Pending

bool VoltMod::MenuRow::Pending = false

Set by the menu service, not by MenuItem::Describe.

Definition at line 55 of file MenuModel.hpp.

◆ Selectable

bool VoltMod::MenuRow::Selectable = true

Whether the cursor may land on the row.

Definition at line 46 of file MenuModel.hpp.

◆ 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.

◆ 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.

◆ Value

std::string VoltMod::MenuRow::Value

Empty when the row has no value.

Definition at line 41 of file MenuModel.hpp.


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