2005-07-24 14:12:37 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 20:21:05 +00:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
|
|
|
|
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2008-05-06 15:11:33 +00:00
|
|
|
/** @file gui.h GUI functions that shouldn't be here. */
|
2007-03-01 01:24:44 +00:00
|
|
|
|
2004-08-09 17:04:08 +00:00
|
|
|
#ifndef GUI_H
|
|
|
|
#define GUI_H
|
|
|
|
|
2007-12-22 23:30:28 +00:00
|
|
|
#include "vehicle_type.h"
|
2007-12-23 10:56:02 +00:00
|
|
|
#include "gfx_type.h"
|
2007-12-25 11:26:07 +00:00
|
|
|
#include "economy_type.h"
|
2007-12-25 23:42:52 +00:00
|
|
|
#include "tile_type.h"
|
2008-01-13 01:21:35 +00:00
|
|
|
#include "strings_type.h"
|
2008-05-07 09:07:19 +00:00
|
|
|
#include "transport_type.h"
|
2004-09-07 19:34:55 +00:00
|
|
|
|
2007-03-01 01:24:44 +00:00
|
|
|
/* main_gui.cpp */
|
2008-03-23 07:35:29 +00:00
|
|
|
void HandleOnEditText(const char *str);
|
|
|
|
void InitializeGUI();
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2007-03-01 01:24:44 +00:00
|
|
|
/* settings_gui.cpp */
|
2007-03-07 11:47:46 +00:00
|
|
|
void ShowGameOptions();
|
|
|
|
void ShowGameDifficulty();
|
2009-02-08 12:25:13 +00:00
|
|
|
void ShowGameSettings();
|
2008-08-08 03:37:00 +00:00
|
|
|
void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2007-03-01 01:24:44 +00:00
|
|
|
/* train_gui.cpp */
|
2006-07-26 03:33:12 +00:00
|
|
|
void ShowOrdersWindow(const Vehicle *v);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2007-03-01 01:24:44 +00:00
|
|
|
/* dock_gui.cpp */
|
2007-03-07 11:47:46 +00:00
|
|
|
void ShowBuildDocksToolbar();
|
2008-06-25 17:30:16 +00:00
|
|
|
void ShowBuildDocksScenToolbar();
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2007-03-01 01:24:44 +00:00
|
|
|
/* aircraft_gui.cpp */
|
2007-03-07 11:47:46 +00:00
|
|
|
void ShowBuildAirToolbar();
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2007-03-01 01:24:44 +00:00
|
|
|
/* tgp_gui.cpp */
|
2007-03-07 11:47:46 +00:00
|
|
|
void ShowGenerateLandscape();
|
|
|
|
void ShowHeightmapLoad();
|
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
- New optional landscape generator (TerraGenesis Perlin)
- Load heightmaps (either BMP or PNG)
- Progress dialog while generating worlds (no longer a 'hanging' screen)
- New dialogs for NewGame, Create Scenario and Play Heightmap
- Easier to configure your landscape
- More things to configure (tree-placer, ..)
- Speedup of world generation
- New console command 'restart': restart the map EXACTLY as it was when you
first started it (needs a game made after or with this commit)
- New console command 'getseed': get the seed of your map and share it with
others (of course only works with generated maps)
- Many new, world generation related, things
- Many internal cleanups and rewrites
Many tnx to those people who helped making this:
Belugas, DaleStan, glx, KUDr, RichK67, Rubidium, and TrueLight (alfabetic)
Many tnx to those who helped testing:
Arnau, Bjarni, and tokai (alfabetic)
And to all other people who helped testing and sending comments / bugs
Stats: 673 lines changed, 3534 new lines, 79 new strings
2006-08-19 10:00:30 +00:00
|
|
|
|
2007-03-01 01:24:44 +00:00
|
|
|
/* misc_gui.cpp */
|
2007-03-07 11:47:46 +00:00
|
|
|
void PlaceLandBlockInfo();
|
|
|
|
void ShowAboutWindow();
|
|
|
|
void ShowBuildTreesToolbar();
|
|
|
|
void ShowTownDirectory();
|
|
|
|
void ShowIndustryDirectory();
|
|
|
|
void ShowSubsidiesList();
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2007-06-21 14:32:27 +00:00
|
|
|
void ShowEstimatedCostOrIncome(Money cost, int x, int y);
|
2010-02-24 14:46:15 +00:00
|
|
|
|
|
|
|
/** Message severity/type */
|
|
|
|
enum WarningLevel {
|
|
|
|
WL_INFO, ///< Used for DoCommand-like (and some nonfatal AI GUI) errors/information
|
|
|
|
WL_WARNING, ///< Other information
|
|
|
|
WL_ERROR, ///< Errors (eg. saving/loading failed)
|
|
|
|
WL_CRITICAL, ///< Critical errors, the MessageBox is shown in all cases
|
|
|
|
};
|
|
|
|
|
|
|
|
void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, WarningLevel wl, int x = 0, int y = 0);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2008-05-05 11:36:43 +00:00
|
|
|
void ShowExtraViewPortWindow(TileIndex tile = INVALID_TILE);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2007-03-07 11:47:46 +00:00
|
|
|
void BuildFileList();
|
2004-12-04 17:54:56 +00:00
|
|
|
void SetFiosType(const byte fiostype);
|
|
|
|
|
2006-08-28 18:53:03 +00:00
|
|
|
/* FIOS_TYPE_FILE, FIOS_TYPE_OLDFILE etc. different colours */
|
2009-02-09 02:57:15 +00:00
|
|
|
extern const TextColour _fios_colours[];
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2007-03-01 01:24:44 +00:00
|
|
|
/* bridge_gui.cpp */
|
2008-02-14 03:10:22 +00:00
|
|
|
void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2007-03-07 11:47:46 +00:00
|
|
|
void ShowBuildIndustryWindow();
|
2009-09-21 18:16:00 +00:00
|
|
|
void ShowFoundTownWindow();
|
2007-03-07 11:47:46 +00:00
|
|
|
void ShowMusicWindow();
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2005-01-31 11:03:23 +00:00
|
|
|
|
2004-08-09 17:04:08 +00:00
|
|
|
#endif /* GUI_H */
|