2005-07-24 14:12:37 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
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-19 20:45:46 +00:00
|
|
|
#include "window_type.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 */
|
2005-06-24 12:38:35 +00:00
|
|
|
void CcPlaySound10(bool success, TileIndex tile, uint32 p1, uint32 p2);
|
|
|
|
void CcBuildCanal(bool success, TileIndex tile, uint32 p1, uint32 p2);
|
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();
|
|
|
|
void ShowPatchesSelection();
|
2006-08-02 18:36:53 +00:00
|
|
|
void DrawArrowButtons(int x, int y, int ctab, byte state, bool clickable_left, bool clickable_right);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2007-03-01 01:24:44 +00:00
|
|
|
/* graph_gui.cpp */
|
2007-03-07 11:47:46 +00:00
|
|
|
void ShowOperatingProfitGraph();
|
|
|
|
void ShowIncomeGraph();
|
|
|
|
void ShowDeliveredCargoGraph();
|
|
|
|
void ShowPerformanceHistoryGraph();
|
|
|
|
void ShowCompanyValueGraph();
|
|
|
|
void ShowCargoPaymentRates();
|
|
|
|
void ShowCompanyLeagueTable();
|
|
|
|
void ShowPerformanceRatingDetail();
|
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);
|
2004-08-09 17:04:08 +00:00
|
|
|
void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y);
|
|
|
|
|
2007-03-07 11:47:46 +00:00
|
|
|
void ShowSmallMap();
|
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 */
|
2007-11-04 00:08:57 +00:00
|
|
|
extern const TextColour _fios_colors[];
|
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();
|
2008-03-23 07:35:29 +00:00
|
|
|
void ShowBuildTownWindow();
|
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 */
|