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-05-07 09:07:19 +00:00
|
|
|
#include "transport_type.h"
|
2004-09-07 19:34:55 +00:00
|
|
|
|
2010-07-04 09:27:15 +00:00
|
|
|
struct Window;
|
|
|
|
|
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);
|
2012-01-05 19:32:51 +00:00
|
|
|
void DrawBoolButton(int x, int y, bool state, bool clickable);
|
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 */
|
2010-07-04 09:27:15 +00:00
|
|
|
Window *ShowBuildDocksToolbar();
|
|
|
|
Window *ShowBuildDocksScenToolbar();
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2010-07-04 09:27:15 +00:00
|
|
|
/* airport_gui.cpp */
|
|
|
|
Window *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 */
|
2010-12-21 21:46:19 +00:00
|
|
|
void ShowLandInfo(TileIndex tile);
|
2007-03-07 11:47:46 +00:00
|
|
|
void ShowAboutWindow();
|
|
|
|
void ShowBuildTreesToolbar();
|
|
|
|
void ShowTownDirectory();
|
|
|
|
void ShowIndustryDirectory();
|
|
|
|
void ShowSubsidiesList();
|
2011-12-19 21:03:17 +00:00
|
|
|
void ShowGoalsList();
|
2012-01-21 12:03:55 +00:00
|
|
|
void ShowGoalQuestion(uint16 id, byte type, uint32 button_mask, const char *question);
|
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
|
|
|
|
2008-05-05 11:36:43 +00:00
|
|
|
void ShowExtraViewPortWindow(TileIndex tile = INVALID_TILE);
|
2010-10-17 13:54:05 +00:00
|
|
|
void ShowExtraViewPortWindowForTileUnderCursor();
|
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
|
|
|
|
|
|
|
#endif /* GUI_H */
|