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.

66 lines
1.6 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef SAVEGAMEDIALOG_H
  8. #define SAVEGAMEDIALOG_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "BaseSaveGameDialog.h"
  13. #include "SaveGameBrowserDialog.h"
  14. #include "vgui_controls/KeyRepeat.h"
  15. //-----------------------------------------------------------------------------
  16. // Purpose: Save game dialog
  17. //-----------------------------------------------------------------------------
  18. class CSaveGameDialog : public CBaseSaveGameDialog
  19. {
  20. DECLARE_CLASS_SIMPLE( CSaveGameDialog, CBaseSaveGameDialog );
  21. public:
  22. CSaveGameDialog( vgui::Panel *parent );
  23. ~CSaveGameDialog();
  24. virtual void Activate();
  25. static void FindSaveSlot( char *buffer, int bufsize );
  26. protected:
  27. virtual void OnCommand( const char *command );
  28. virtual void OnScanningSaveGames();
  29. };
  30. #define SAVE_NUM_ITEMS 4
  31. //
  32. //
  33. //
  34. class CAsyncCtxSaveGame;
  35. class CSaveGameDialogXbox : public CSaveGameBrowserDialog
  36. {
  37. DECLARE_CLASS_SIMPLE( CSaveGameDialogXbox, CSaveGameBrowserDialog );
  38. public:
  39. CSaveGameDialogXbox( vgui::Panel *parent );
  40. virtual void PerformSelectedAction( void );
  41. virtual void UpdateFooterOptions( void );
  42. virtual void OnCommand( const char *command );
  43. virtual void OnDoneScanningSaveGames( void );
  44. private:
  45. friend class CAsyncCtxSaveGame;
  46. void InitiateSaving();
  47. void SaveCompleted( CAsyncCtxSaveGame *pCtx );
  48. private:
  49. bool m_bGameSaving;
  50. bool m_bNewSaveAvailable;
  51. SaveGameDescription_t m_NewSaveDesc;
  52. };
  53. #endif // SAVEGAMEDIALOG_H