Counter Strike : Global Offensive Source Code
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
920 B

  1. //========= Copyright � 1996-2005, 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