diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /utils/hlfaceposer/choiceproperties.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'utils/hlfaceposer/choiceproperties.h')
| -rw-r--r-- | utils/hlfaceposer/choiceproperties.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/utils/hlfaceposer/choiceproperties.h b/utils/hlfaceposer/choiceproperties.h new file mode 100644 index 0000000..d13211b --- /dev/null +++ b/utils/hlfaceposer/choiceproperties.h @@ -0,0 +1,42 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef CHOICEPROPERTIES_H +#define CHOICEPROPERTIES_H +#ifdef _WIN32 +#pragma once +#endif + +#include "utlvector.h" + +#define MAX_CHOICE_TEXT_SIZE 128 + +struct ChoiceText +{ + char choice[ MAX_CHOICE_TEXT_SIZE ]; +}; + +#include "basedialogparams.h" + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +struct CChoiceParams : public CBaseDialogParams +{ + + char m_szPrompt[ 256 ]; + + CUtlVector< ChoiceText > m_Choices; + + // i/o active choice and output choice + int m_nSelected; // -1 for none +}; + +// Display/create dialog +int ChoiceProperties( CChoiceParams *params ); + +#endif // CHOICEPROPERTIES_H |