summaryrefslogtreecommitdiff
path: root/gameui/SaveGameDialog.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /gameui/SaveGameDialog.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'gameui/SaveGameDialog.h')
-rw-r--r--gameui/SaveGameDialog.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/gameui/SaveGameDialog.h b/gameui/SaveGameDialog.h
new file mode 100644
index 0000000..9557d42
--- /dev/null
+++ b/gameui/SaveGameDialog.h
@@ -0,0 +1,66 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef SAVEGAMEDIALOG_H
+#define SAVEGAMEDIALOG_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "BaseSaveGameDialog.h"
+#include "SaveGameBrowserDialog.h"
+#include "vgui_controls/KeyRepeat.h"
+
+//-----------------------------------------------------------------------------
+// Purpose: Save game dialog
+//-----------------------------------------------------------------------------
+class CSaveGameDialog : public CBaseSaveGameDialog
+{
+ DECLARE_CLASS_SIMPLE( CSaveGameDialog, CBaseSaveGameDialog );
+
+public:
+ CSaveGameDialog( vgui::Panel *parent );
+ ~CSaveGameDialog();
+
+ virtual void Activate();
+ static void FindSaveSlot( char *buffer, int bufsize );
+
+protected:
+ virtual void OnCommand( const char *command );
+ virtual void OnScanningSaveGames();
+};
+
+#define SAVE_NUM_ITEMS 4
+
+//
+//
+//
+class CAsyncCtxSaveGame;
+
+class CSaveGameDialogXbox : public CSaveGameBrowserDialog
+{
+ DECLARE_CLASS_SIMPLE( CSaveGameDialogXbox, CSaveGameBrowserDialog );
+
+public:
+ CSaveGameDialogXbox( vgui::Panel *parent );
+ virtual void PerformSelectedAction( void );
+ virtual void UpdateFooterOptions( void );
+ virtual void OnCommand( const char *command );
+ virtual void OnDoneScanningSaveGames( void );
+
+private:
+ friend class CAsyncCtxSaveGame;
+ void InitiateSaving();
+ void SaveCompleted( CAsyncCtxSaveGame *pCtx );
+
+private:
+ bool m_bGameSaving;
+ bool m_bNewSaveAvailable;
+ SaveGameDescription_t m_NewSaveDesc;
+};
+
+#endif // SAVEGAMEDIALOG_H