Changeset - r8149:8a97dd280f35
[Not reviewed]
master
0 5 0
belugas - 16 years ago 2007-12-27 17:29:27
belugas@openttd.org
(svn r11711) -Codechange: Name the Save Load Dialog Mode enum
5 files changed with 17 insertions and 13 deletions:
0 comments (0 inline, 0 general)
src/fios.h
Show inline comments
 
@@ -31,6 +31,15 @@ struct FiosItem {
 
	char name[256 - 12 - 64];
 
};
 

	
 
enum SaveLoadDialogMode{
 
	SLD_LOAD_GAME,
 
	SLD_LOAD_SCENARIO,
 
	SLD_SAVE_GAME,
 
	SLD_SAVE_SCENARIO,
 
	SLD_LOAD_HEIGHTMAP,
 
	SLD_NEW_GAME,
 
};
 

	
 
enum {
 
	FIOS_TYPE_DRIVE        =   0,
 
	FIOS_TYPE_PARENT       =   1,
 
@@ -48,7 +57,10 @@ enum {
 
/* Variables to display file lists */
 
extern FiosItem *_fios_list; ///< defined in misc_gui.cpp
 
extern int _fios_num;        ///< defined in fios.cpp, read_only version of _fios_count
 
extern int _saveload_mode;   ///< defined in misc_gui.cpp
 
extern SaveLoadDialogMode _saveload_mode;   ///< defined in misc_gui.cpp
 

	
 
/* Launch save/load dialog */
 
void ShowSaveLoadDialog(SaveLoadDialogMode mode);
 

	
 
/* Get a list of savegames */
 
FiosItem *FiosGetSavegameList(int mode);
src/functions.h
Show inline comments
 
@@ -77,15 +77,6 @@ StringID RemapOldStringID(StringID s);
 

	
 
void UpdateViewportSignPos(ViewportSign *sign, int left, int top, StringID str);
 

	
 
enum {
 
	SLD_LOAD_GAME,
 
	SLD_LOAD_SCENARIO,
 
	SLD_SAVE_GAME,
 
	SLD_SAVE_SCENARIO,
 
	SLD_LOAD_HEIGHTMAP,
 
	SLD_NEW_GAME,
 
};
 
void ShowSaveLoadDialog(int mode);
 

	
 
/* callback from drivers that is called if the game size changes dynamically */
 
void GameSizeChanged();
src/intro_gui.cpp
Show inline comments
 
@@ -18,8 +18,8 @@
 
#include "network/network_gui.h"
 
#include "newgrf.h"
 
#include "strings_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "fios.h"
 

	
 
static const Widget _select_game_widgets[] = {
 
{    WWT_CAPTION, RESIZE_NONE, 13,   0, 335,   0,  13, STR_0307_OPENTTD,         STR_NULL},
src/main_gui.cpp
Show inline comments
 
@@ -41,6 +41,7 @@
 
#include "date_func.h"
 
#include "functions.h"
 
#include "vehicle_func.h"
 
#include "fios.h"
 

	
 
#include "network/network_data.h"
 
#include "network/network_client.h"
src/misc_gui.cpp
Show inline comments
 
@@ -43,7 +43,7 @@
 

	
 
/* Variables to display file lists */
 
FiosItem *_fios_list;
 
int _saveload_mode;
 
SaveLoadDialogMode _saveload_mode;
 

	
 

	
 
static bool _fios_path_changed;
 
@@ -1671,7 +1671,7 @@ static const WindowDesc _save_dialog_des
 
	SaveLoadDlgWndProc,
 
};
 

	
 
void ShowSaveLoadDialog(int mode)
 
void ShowSaveLoadDialog(SaveLoadDialogMode mode)
 
{
 
	static const StringID saveload_captions[] = {
 
		STR_4001_LOAD_GAME,
0 comments (0 inline, 0 general)