|
VoltMod
C++23 framework for CS2 server plugins
|
#include <MenuBuilder.hpp>
Public Member Functions | |
| MenuItem | ToItem () const |
Public Attributes | |
| std::string | Label |
| std::vector< Labeled< T > > | Choices |
| std::function< void(int slot, const T &value)> | Commit |
| std::optional< ChoiceIndex > | Bind |
| int | Index = 0 |
| EnabledCondition | Enabled |
| ChoiceApply | Apply = ChoiceApply::AfterStep |
A labeled choice list. A/D wraps through the values.
Definition at line 89 of file MenuBuilder.hpp.
|
inline |
Definition at line 102 of file MenuBuilder.hpp.
References VoltMod::ChoiceRow< T >::Apply, VoltMod::ChoiceRow< T >::Bind, VoltMod::Internal::ChoiceItem(), VoltMod::ChoiceRow< T >::Choices, VoltMod::ChoiceRow< T >::Commit, VoltMod::ChoiceRow< T >::Enabled, VoltMod::ChoiceRow< T >::Index, VoltMod::ChoiceRow< T >::Label, and VoltMod::ReadFile().
| ChoiceApply VoltMod::ChoiceRow< T >::Apply = ChoiceApply::AfterStep |
Definition at line 100 of file MenuBuilder.hpp.
Referenced by VoltMod::ChoiceRow< T >::ToItem().
| std::optional<ChoiceIndex> VoltMod::ChoiceRow< T >::Bind |
Optional external home for the selection; unset keeps it in the row.
Definition at line 96 of file MenuBuilder.hpp.
Referenced by VoltMod::ChoiceRow< T >::ToItem().
Definition at line 92 of file MenuBuilder.hpp.
Referenced by VoltMod::ChoiceRow< T >::ToItem().
Runs on E, or shortly after the last step unless Apply says otherwise.
Definition at line 94 of file MenuBuilder.hpp.
Referenced by VoltMod::ChoiceRow< T >::ToItem().
| EnabledCondition VoltMod::ChoiceRow< T >::Enabled |
Definition at line 99 of file MenuBuilder.hpp.
Referenced by VoltMod::ChoiceRow< T >::ToItem().
| int VoltMod::ChoiceRow< T >::Index = 0 |
Where an unbound row starts.
Definition at line 98 of file MenuBuilder.hpp.
Referenced by VoltMod::ChoiceRow< T >::ToItem().
| std::string VoltMod::ChoiceRow< T >::Label |
Definition at line 91 of file MenuBuilder.hpp.
Referenced by VoltMod::ChoiceRow< T >::ToItem().