Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
907 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CHOICEPROPERTIES_H
  8. #define CHOICEPROPERTIES_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "utlvector.h"
  13. #define MAX_CHOICE_TEXT_SIZE 128
  14. struct ChoiceText
  15. {
  16. char choice[ MAX_CHOICE_TEXT_SIZE ];
  17. };
  18. #include "basedialogparams.h"
  19. //-----------------------------------------------------------------------------
  20. // Purpose:
  21. //-----------------------------------------------------------------------------
  22. struct CChoiceParams : public CBaseDialogParams
  23. {
  24. char m_szPrompt[ 256 ];
  25. CUtlVector< ChoiceText > m_Choices;
  26. // i/o active choice and output choice
  27. int m_nSelected; // -1 for none
  28. };
  29. // Display/create dialog
  30. int ChoiceProperties( CChoiceParams *params );
  31. #endif // CHOICEPROPERTIES_H