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

#include <MenuPresets.hpp>

Public Member Functions

SummaryRows & Add (std::string label, std::string value={})
 
SummaryRows & AddIf (bool condition, std::string label, std::string value={})
 
std::vector< std::string > Take () &&
 

Detailed Description

Lines listed before a confirm dialog's two buttons.

Definition at line 58 of file MenuPresets.hpp.

Member Function Documentation

◆ Add()

SummaryRows & VoltMod::SummaryRows::Add ( std::string  label,
std::string  value = {} 
)
inline

"{label}: {value}", or just "{label}" when value is empty.

Definition at line 62 of file MenuPresets.hpp.

◆ AddIf()

SummaryRows & VoltMod::SummaryRows::AddIf ( bool  condition,
std::string  label,
std::string  value = {} 
)
inline

Adds a row when condition is true.

Definition at line 69 of file MenuPresets.hpp.

◆ Take()

std::vector< std::string > VoltMod::SummaryRows::Take ( ) &&

The rows, formatted one per line. Consumes them.

Definition at line 12 of file MenuPresets.cpp.

References VoltMod::ReadFile().


The documentation for this class was generated from the following files: