Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef GUI_H
00013 #define GUI_H
00014
00015 #include "vehicle_type.h"
00016 #include "gfx_type.h"
00017 #include "economy_type.h"
00018 #include "tile_type.h"
00019 #include "strings_type.h"
00020 #include "transport_type.h"
00021 #include "rail.h"
00022
00023 struct Window;
00024
00025
00026 void HandleOnEditText(const char *str);
00027 void InitializeGUI();
00028
00029
00030 void ShowGameOptions();
00031 void ShowGameDifficulty();
00032 void ShowGameSettings();
00033 void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right);
00034
00035
00036 void ShowOrdersWindow(const Vehicle *v);
00037
00038
00039 Window *ShowBuildDocksToolbar();
00040 Window *ShowBuildDocksScenToolbar();
00041
00042
00043 Window *ShowBuildAirToolbar();
00044
00045
00046 void ShowGenerateLandscape();
00047 void ShowHeightmapLoad();
00048
00049
00050 void ShowCopyPasteToolbarGui();
00051 void ShowCopyPasteToolbar(int button);
00052
00053
00054 void ShowLandInfo(TileIndex tile);
00055 void ShowAboutWindow();
00056 void ShowSystemTimeWindow();
00057 void ShowBuildTreesToolbar();
00058 void ShowTownDirectory();
00059 void ShowIndustryDirectory();
00060 void ShowSubsidiesList();
00061
00062 void ShowEstimatedCostOrIncome(Money cost, int x, int y);
00063
00065 enum WarningLevel {
00066 WL_INFO,
00067 WL_WARNING,
00068 WL_ERROR,
00069 WL_CRITICAL,
00070 };
00071
00072 void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, WarningLevel wl, int x = 0, int y = 0);
00073
00074 void ShowExtraViewPortWindow(TileIndex tile = INVALID_TILE);
00075 void ShowExtraViewPortWindowForTileUnderCursor();
00076
00077
00078 void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type);
00079
00080 void ShowBuildIndustryWindow();
00081 void ShowFoundTownWindow();
00082 void ShowMusicWindow();
00083
00084 #endif