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.

50 lines
1.5 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef SFHUDCALLVOTEPANEL_H
  8. #define SFHUDCALLVOTEPANEL_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif //_WIN32
  12. #include "sfhudflashinterface.h"
  13. #define MAX_TARGET_COUNT 10
  14. #define CALLVOTE_NAME_TRUNCATE_AT 16 // number of name character displayed before truncation
  15. class SFHudCallVotePanel: public ScaleformFlashInterface
  16. {
  17. public:
  18. static SFHudCallVotePanel *m_pInstance;
  19. SFHudCallVotePanel();
  20. static void LoadDialog( void );
  21. static void UnloadDialog( void );
  22. virtual void LevelShutdown( void );
  23. virtual void FlashReady( void );
  24. virtual bool PreUnloadFlash( void );
  25. virtual void PostUnloadFlash( void );
  26. void PopulatePlayerTargets( SCALEFORM_CALLBACK_ARGS_DECL );
  27. void PopulateMapTargets( SCALEFORM_CALLBACK_ARGS_DECL );
  28. void PopulateBackupFilenames( SCALEFORM_CALLBACK_ARGS_DECL );
  29. void PopulateBackupFilenames_Callback( const CCSUsrMsg_RoundBackupFilenames &msg );
  30. void GetNumberOfValidMapsInGroup( SCALEFORM_CALLBACK_ARGS_DECL );
  31. void GetNumberOfValidKickTargets( SCALEFORM_CALLBACK_ARGS_DECL );
  32. void IsQueuedMatchmaking( SCALEFORM_CALLBACK_ARGS_DECL );
  33. void IsEndMatchMapVoteEnabled( SCALEFORM_CALLBACK_ARGS_DECL );
  34. void IsPlayingClassicCompetitive( SCALEFORM_CALLBACK_ARGS_DECL );
  35. void Show( void );
  36. void Hide( void );
  37. };
  38. #endif // SFHUDCALLVOTEPANEL_H