2009-08-21 22:21:05 +02: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 17:11:33 +02:00
|
|
|
/** @file gui.h GUI functions that shouldn't be here. */
|
2007-03-01 02:24:44 +01:00
|
|
|
|
2004-08-09 19:04:08 +02:00
|
|
|
#ifndef GUI_H
|
|
|
|
#define GUI_H
|
|
|
|
|
2007-12-23 00:30:28 +01:00
|
|
|
#include "vehicle_type.h"
|
2007-12-25 12:26:07 +01:00
|
|
|
#include "economy_type.h"
|
2007-12-26 00:42:52 +01:00
|
|
|
#include "tile_type.h"
|
2008-05-07 11:07:19 +02:00
|
|
|
#include "transport_type.h"
|
2013-06-09 14:57:22 +02:00
|
|
|
#include "story_type.h"
|
2013-06-09 15:13:47 +02:00
|
|
|
#include "company_type.h"
|
2004-09-07 21:34:55 +02:00
|
|
|
|
2010-07-04 11:27:15 +02:00
|
|
|
struct Window;
|
|
|
|
|
2007-03-01 02:24:44 +01:00
|
|
|
/* main_gui.cpp */
|
2008-03-23 08:35:29 +01:00
|
|
|
void InitializeGUI();
|
2004-08-09 19:04:08 +02:00
|
|
|
|
2007-03-01 02:24:44 +01:00
|
|
|
/* settings_gui.cpp */
|
2007-03-07 12:47:46 +01:00
|
|
|
void ShowGameOptions();
|
2009-02-08 13:25:13 +01:00
|
|
|
void ShowGameSettings();
|
2004-08-09 19:04:08 +02:00
|
|
|
|
2007-03-01 02:24:44 +01:00
|
|
|
/* train_gui.cpp */
|
2006-07-26 05:33:12 +02:00
|
|
|
void ShowOrdersWindow(const Vehicle *v);
|
2004-08-09 19:04:08 +02:00
|
|
|
|
2007-03-01 02:24:44 +01:00
|
|
|
/* dock_gui.cpp */
|
2010-07-04 11:27:15 +02:00
|
|
|
Window *ShowBuildDocksToolbar();
|
|
|
|
Window *ShowBuildDocksScenToolbar();
|
2004-08-09 19:04:08 +02:00
|
|
|
|
2010-07-04 11:27:15 +02:00
|
|
|
/* airport_gui.cpp */
|
|
|
|
Window *ShowBuildAirToolbar();
|
2004-08-09 19:04:08 +02:00
|
|
|
|
2007-03-01 02:24:44 +01:00
|
|
|
/* tgp_gui.cpp */
|
2007-03-07 12:47:46 +01: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 12:00:30 +02:00
|
|
|
|
2007-03-01 02:24:44 +01:00
|
|
|
/* misc_gui.cpp */
|
2010-12-21 22:46:19 +01:00
|
|
|
void ShowLandInfo(TileIndex tile);
|
2007-03-07 12:47:46 +01:00
|
|
|
void ShowAboutWindow();
|
2024-01-14 19:12:40 +01:00
|
|
|
void ShowEstimatedCostOrIncome(Money cost, int x, int y);
|
|
|
|
|
|
|
|
/* tree_gui.cpp */
|
2007-03-07 12:47:46 +01:00
|
|
|
void ShowBuildTreesToolbar();
|
2024-01-14 19:12:40 +01:00
|
|
|
|
|
|
|
/* town_gui.cpp */
|
2007-03-07 12:47:46 +01:00
|
|
|
void ShowTownDirectory();
|
2024-01-14 19:12:40 +01:00
|
|
|
void ShowFoundTownWindow();
|
|
|
|
|
|
|
|
/* industry_gui.cpp */
|
2007-03-07 12:47:46 +01:00
|
|
|
void ShowIndustryDirectory();
|
2012-11-25 16:24:02 +01:00
|
|
|
void ShowIndustryCargoesWindow();
|
2024-01-14 19:12:40 +01:00
|
|
|
void ShowBuildIndustryWindow();
|
|
|
|
|
|
|
|
/* subsidy_gui.cpp */
|
2007-03-07 12:47:46 +01:00
|
|
|
void ShowSubsidiesList();
|
2024-01-14 19:12:40 +01:00
|
|
|
|
|
|
|
/* goal_gui.cpp */
|
2013-06-09 15:23:03 +02:00
|
|
|
void ShowGoalsList(CompanyID company);
|
2023-05-08 19:01:06 +02:00
|
|
|
void ShowGoalQuestion(uint16_t id, byte type, uint32_t button_mask, const std::string &question);
|
2004-08-09 19:04:08 +02:00
|
|
|
|
2024-01-14 19:12:40 +01:00
|
|
|
/* story_gui.cpp */
|
2024-02-03 08:09:55 +01:00
|
|
|
void ShowStoryBook(CompanyID company, uint16_t page_id = INVALID_STORY_PAGE, bool centered = false);
|
2010-02-24 15:46:15 +01:00
|
|
|
|
2024-01-14 19:12:40 +01:00
|
|
|
/* viewport_gui.cpp */
|
2020-06-29 03:38:29 +02:00
|
|
|
void ShowExtraViewportWindow(TileIndex tile = INVALID_TILE);
|
|
|
|
void ShowExtraViewportWindowForTileUnderCursor();
|
2004-08-09 19:04:08 +02:00
|
|
|
|
2007-03-01 02:24:44 +01:00
|
|
|
/* bridge_gui.cpp */
|
2008-02-14 04:10:22 +01:00
|
|
|
void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type);
|
2004-08-09 19:04:08 +02:00
|
|
|
|
2024-01-14 19:12:40 +01:00
|
|
|
/* music_gui.cpp */
|
2007-03-07 12:47:46 +01:00
|
|
|
void ShowMusicWindow();
|
2004-08-09 19:04:08 +02:00
|
|
|
|
|
|
|
#endif /* GUI_H */
|