2004-08-09 17:04:08 +00:00
|
|
|
#ifndef GUI_H
|
|
|
|
#define GUI_H
|
|
|
|
|
2004-09-07 19:34:55 +00:00
|
|
|
#include "window.h"
|
|
|
|
|
2004-08-09 17:04:08 +00:00
|
|
|
/* main_gui.c */
|
|
|
|
void SetupColorsAndInitialWindow();
|
|
|
|
void CcPlaySound10(bool success, uint tile, uint32 p1, uint32 p2);
|
|
|
|
|
|
|
|
/* settings_gui.c */
|
|
|
|
void ShowGameOptions();
|
|
|
|
void ShowGameDifficulty();
|
|
|
|
void ShowPatchesSelection();
|
2004-11-21 22:44:13 +00:00
|
|
|
void ShowNewgrf();
|
2004-12-22 13:19:26 +00:00
|
|
|
void ShowCustCurrency();
|
2004-08-09 17:04:08 +00:00
|
|
|
|
|
|
|
/* graph_gui.c */
|
|
|
|
void ShowOperatingProfitGraph();
|
|
|
|
void ShowIncomeGraph();
|
|
|
|
void ShowDeliveredCargoGraph();
|
|
|
|
void ShowPerformanceHistoryGraph();
|
|
|
|
void ShowCompanyValueGraph();
|
|
|
|
void ShowCargoPaymentRates();
|
|
|
|
void ShowCompanyLeagueTable();
|
2004-08-23 10:59:03 +00:00
|
|
|
void ShowPerformanceRatingDetail();
|
2004-08-09 17:04:08 +00:00
|
|
|
|
|
|
|
/* news_gui.c */
|
|
|
|
void ShowLastNewsMessage();
|
|
|
|
void ShowMessageOptions();
|
|
|
|
void ShowMessageHistory();
|
|
|
|
|
|
|
|
/* traintoolb_gui.c */
|
|
|
|
void ShowBuildRailToolbar(int index, int button);
|
|
|
|
void PlaceProc_BuyLand(uint tile);
|
|
|
|
|
|
|
|
/* train_gui.c */
|
2004-12-10 18:16:08 +00:00
|
|
|
void ShowPlayerTrains(int player, int station);
|
2004-08-09 17:04:08 +00:00
|
|
|
void ShowTrainViewWindow(Vehicle *v);
|
|
|
|
void ShowTrainDetailsWindow(Vehicle *v);
|
|
|
|
void ShowOrdersWindow(Vehicle *v);
|
|
|
|
|
|
|
|
void ShowRoadVehViewWindow(Vehicle *v);
|
|
|
|
|
|
|
|
/* road_gui.c */
|
|
|
|
void ShowBuildRoadToolbar();
|
|
|
|
void ShowBuildRoadScenToolbar();
|
2004-12-10 18:16:08 +00:00
|
|
|
void ShowPlayerRoadVehicles(int player, int station);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
|
|
|
/* dock_gui.c */
|
|
|
|
void ShowBuildDocksToolbar();
|
2004-12-10 18:16:08 +00:00
|
|
|
void ShowPlayerShips(int player, int station);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
|
|
|
void ShowShipViewWindow(Vehicle *v);
|
|
|
|
|
|
|
|
/* aircraft_gui.c */
|
|
|
|
void ShowBuildAirToolbar();
|
2004-12-10 18:16:08 +00:00
|
|
|
void ShowPlayerAircraft(int player, int station);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
|
|
|
/* terraform_gui.c */
|
|
|
|
void PlaceProc_DemolishArea(uint tile);
|
|
|
|
void PlaceProc_LowerLand(uint tile);
|
|
|
|
void PlaceProc_RaiseLand(uint tile);
|
|
|
|
void PlaceProc_LevelLand(uint tile);
|
|
|
|
void ShowTerraformToolbar();
|
|
|
|
|
|
|
|
/* misc_gui.c */
|
|
|
|
void PlaceLandBlockInfo();
|
|
|
|
void ShowAboutWindow();
|
|
|
|
void ShowBuildTreesToolbar();
|
|
|
|
void ShowBuildTreesScenToolbar();
|
|
|
|
void ShowTownDirectory();
|
|
|
|
void ShowIndustryDirectory();
|
|
|
|
void ShowSubsidiesList();
|
|
|
|
void ShowPlayerStations(int player);
|
|
|
|
void ShowPlayerFinances(int player);
|
|
|
|
void ShowPlayerCompany(int player);
|
|
|
|
|
|
|
|
void ShowEstimatedCostOrIncome(int32 cost, int x, int y);
|
|
|
|
void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y);
|
|
|
|
|
2004-12-08 15:46:13 +00:00
|
|
|
void DrawStationCoverageAreaText(int sx, int sy, uint mask,int rad);
|
2004-08-09 17:04:08 +00:00
|
|
|
void CheckRedrawStationCoverage(Window *w);
|
|
|
|
|
|
|
|
void ShowSmallMap();
|
2004-09-03 19:59:05 +00:00
|
|
|
void ShowExtraViewPortWindow();
|
2004-08-09 17:04:08 +00:00
|
|
|
void SetVScrollCount(Window *w, int num);
|
2005-01-02 17:23:04 +00:00
|
|
|
void SetVScroll2Count(Window *w, int num);
|
2004-08-09 17:04:08 +00:00
|
|
|
void SetHScrollCount(Window *w, int num);
|
2004-09-07 19:34:55 +00:00
|
|
|
int HandleEditBoxKey(Window *w, int wid, WindowEvent *we);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
|
|
|
void ShowCheatWindow();
|
|
|
|
void AskForNewGameToStart();
|
|
|
|
|
|
|
|
void DrawEditBox(Window *w, int wid);
|
|
|
|
void HandleEditBox(Window *w, int wid);
|
|
|
|
|
2004-12-04 17:54:56 +00:00
|
|
|
void BuildFileList();
|
|
|
|
void SetFiosType(const byte fiostype);
|
|
|
|
|
|
|
|
/* FIOS_TYPE_FILE, FIOS_TYPE_OLDFILE etc. different colours */
|
|
|
|
static const byte _fios_colors[] = {13, 9, 9, 6, 5, 6, 5};
|
|
|
|
|
2004-08-09 17:04:08 +00:00
|
|
|
|
|
|
|
/* network gui */
|
|
|
|
void ShowNetworkGameWindow();
|
2004-12-14 16:53:38 +00:00
|
|
|
void ShowChatWindow(StringID str, StringID caption, int maxlen, int maxwidth, byte window_class, uint16 window_number);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
|
|
|
/* bridge_gui.c */
|
|
|
|
void ShowBuildBridgeWindow(uint start, uint end, byte type);
|
|
|
|
|
|
|
|
enum {
|
|
|
|
ZOOM_IN = 0,
|
|
|
|
ZOOM_OUT = 1,
|
|
|
|
ZOOM_NONE = 2, // hack, used to update the button status
|
|
|
|
};
|
|
|
|
|
2004-09-03 19:59:05 +00:00
|
|
|
bool DoZoomInOutWindow(int how, Window * w);
|
2004-08-09 17:04:08 +00:00
|
|
|
void ShowBuildIndustryWindow();
|
|
|
|
void ShowQueryString(StringID str, StringID caption, int maxlen, int maxwidth, byte window_class, uint16 window_number);
|
|
|
|
void ShowMusicWindow();
|
|
|
|
|
|
|
|
/* main_gui.c */
|
|
|
|
VARDEF byte _newspaper_flag;
|
|
|
|
VARDEF byte _construct_mode;
|
|
|
|
VARDEF byte _station_show_coverage;
|
|
|
|
VARDEF PlaceProc *_place_proc;
|
|
|
|
VARDEF bool _no_button_sound;
|
|
|
|
|
|
|
|
#endif /* GUI_H */
|