|
|
/* $Id$ */
|
|
|
|
|
|
/** @file genworld_gui.cpp */
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
#include "openttd.h"
|
|
|
#include "heightmap.h"
|
|
|
#include "functions.h"
|
|
|
#include "table/strings.h"
|
|
|
#include "table/sprites.h"
|
|
|
#include "gui.h"
|
|
|
#include "window_gui.h"
|
|
|
#include "textbuf_gui.h"
|
|
|
#include "gfxinit.h"
|
|
|
#include "player.h"
|
|
|
#include "command_func.h"
|
|
|
#include "sound.h"
|
|
|
#include "variables.h"
|
|
|
#include "string.h"
|
|
|
#include "settings.h"
|
|
|
#include "debug.h"
|
|
|
#include "genworld.h"
|
|
|
#include "network/network.h"
|
|
|
#include "thread.h"
|
|
|
#include "date.h"
|
|
|
#include "newgrf_config.h"
|
|
|
#include "strings_func.h"
|
|
|
#include "window_func.h"
|
|
|
|
|
|
/**
|
|
|
* In what 'mode' the GenerateLandscapeWindowProc is.
|
|
|
*/
|
|
|
enum glwp_modes {
|
|
|
GLWP_GENERATE,
|
|
|
GLWP_HEIGHTMAP,
|
|
|
GLWP_SCENARIO,
|
|
|
GLWP_END
|
|
|
};
|
|
|
|
|
|
struct generate_d {
|
|
|
uint widget_id;
|
|
|
uint x;
|
|
|
uint y;
|
|
|
char name[64];
|
|
|
};
|
|
|
|
|
|
extern void SwitchMode(int new_mode);
|
|
|
|
|
|
static inline void SetNewLandscapeType(byte landscape)
|
|
|
{
|
|
|
_opt_newgame.landscape = landscape;
|
|
|
InvalidateWindowClasses(WC_SELECT_GAME);
|