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

#include <MenuPresets.hpp>

Public Attributes

std::string Title
 
std::vector< Labeled< int > > Presets
 
std::function< void(int slot, int seconds)> Pick
 
std::string CustomLabel
 
std::string CustomPrompt
 
int MaxInputLength = 32
 

Detailed Description

Duration presets with optional free-text input.

Definition at line 39 of file MenuPresets.hpp.

Member Data Documentation

◆ CustomLabel

std::string VoltMod::DurationMenu::CustomLabel

Empty disables free-text input.

Definition at line 47 of file MenuPresets.hpp.

◆ CustomPrompt

std::string VoltMod::DurationMenu::CustomPrompt

Shown over the menu while the player types.

Definition at line 49 of file MenuPresets.hpp.

◆ MaxInputLength

int VoltMod::DurationMenu::MaxInputLength = 32

Longest chat line the free-text row accepts.

Definition at line 51 of file MenuPresets.hpp.

◆ Pick

std::function<void(int slot, int seconds)> VoltMod::DurationMenu::Pick

Runs with the seconds the picked row - or the typed text - stands for.

Definition at line 45 of file MenuPresets.hpp.

◆ Presets

std::vector<Labeled<int> > VoltMod::DurationMenu::Presets

Seconds, drawn in this order.

Definition at line 43 of file MenuPresets.hpp.

◆ Title

std::string VoltMod::DurationMenu::Title

Definition at line 41 of file MenuPresets.hpp.


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