Update: Translations from eints
[openttd-github.git] / src / smallmap_gui.h
blob8eb6906e31224de063cf820032fe3783cfcab807
1 /*
2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
6 */
8 /** @file smallmap_gui.h Smallmap GUI functions. */
10 #ifndef SMALLMAP_GUI_H
11 #define SMALLMAP_GUI_H
13 #include "core/geometry_type.hpp"
14 #include "station_type.h"
15 #include "tile_type.h"
16 #include "window_type.h"
18 /* set up the cargos to be displayed in the smallmap's route legend */
19 void BuildLinkStatsLegend();
21 void BuildIndustriesLegend();
22 void ShowSmallMap();
23 void BuildLandLegend();
24 void BuildOwnerLegend();
26 /** Enum for how to include the heightmap pixels/colours in small map related functions */
27 enum class IncludeHeightmap {
28 Never, ///< Never include the heightmap
29 IfEnabled, ///< Only include the heightmap if its enabled in the gui by the player
30 Always ///< Always include the heightmap
33 uint32_t GetSmallMapOwnerPixels(TileIndex tile, TileType t, IncludeHeightmap include_heightmap);
35 Point GetSmallMapStationMiddle(const Window *w, const Station *st);
37 #endif /* SMALLMAP_GUI_H */