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

#include <MenuBuilder.hpp>

Public Member Functions

MenuItem ToItem () const
 

Public Attributes

std::string Label
 
std::string Prompt
 
std::function< std::string(int slot)> Get
 
std::function< bool(int slot, std::string_view text)> Set
 
int MaxLength = 64
 
EnabledCondition Enabled
 

Detailed Description

A free-text row. E pauses the menu and routes the player's next chat line to Set; a false return re-prompts, and so does text longer than MaxLength. R cancels.

Definition at line 127 of file MenuBuilder.hpp.

Member Function Documentation

◆ ToItem()

Member Data Documentation

◆ Enabled

EnabledCondition VoltMod::InputRow::Enabled

Definition at line 134 of file MenuBuilder.hpp.

Referenced by ToItem().

◆ Get

std::function<std::string(int slot)> VoltMod::InputRow::Get

Definition at line 131 of file MenuBuilder.hpp.

Referenced by ToItem().

◆ Label

std::string VoltMod::InputRow::Label

Definition at line 129 of file MenuBuilder.hpp.

Referenced by VoltMod::BuildDurationMenu(), and ToItem().

◆ MaxLength

int VoltMod::InputRow::MaxLength = 64

Definition at line 133 of file MenuBuilder.hpp.

Referenced by ToItem().

◆ Prompt

std::string VoltMod::InputRow::Prompt

Definition at line 130 of file MenuBuilder.hpp.

Referenced by ToItem().

◆ Set

std::function<bool(int slot, std::string_view text)> VoltMod::InputRow::Set

Definition at line 132 of file MenuBuilder.hpp.

Referenced by ToItem().


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