blob: 9557d42f88e409740c9d92609496ea896231418e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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
|