2010-02-08 22:19:41 +01: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/>.
|
|
|
|
*/
|
|
|
|
|
2010-02-09 00:46:35 +01:00
|
|
|
/** @file smallmap_gui.h Smallmap GUI functions. */
|
2010-02-08 22:19:41 +01:00
|
|
|
|
|
|
|
#ifndef SMALLMAP_GUI_H
|
|
|
|
#define SMALLMAP_GUI_H
|
|
|
|
|
2023-10-31 03:07:29 +01:00
|
|
|
#include "core/geometry_type.hpp"
|
|
|
|
#include "station_type.h"
|
|
|
|
#include "tile_type.h"
|
|
|
|
#include "window_type.h"
|
2013-02-17 21:38:35 +01:00
|
|
|
|
2013-05-19 16:36:35 +02:00
|
|
|
/* set up the cargos to be displayed in the smallmap's route legend */
|
|
|
|
void BuildLinkStatsLegend();
|
|
|
|
|
2010-02-08 22:19:41 +01:00
|
|
|
void BuildIndustriesLegend();
|
|
|
|
void ShowSmallMap();
|
2010-02-09 00:46:35 +01:00
|
|
|
void BuildLandLegend();
|
2011-01-04 21:53:57 +01:00
|
|
|
void BuildOwnerLegend();
|
2010-02-08 22:19:41 +01:00
|
|
|
|
2022-10-01 00:20:25 +02:00
|
|
|
/** Enum for how to include the heightmap pixels/colours in small map related functions */
|
|
|
|
enum class IncludeHeightmap {
|
|
|
|
Never, ///< Never include the heightmap
|
|
|
|
IfEnabled, ///< Only include the heightmap if its enabled in the gui by the player
|
|
|
|
Always ///< Always include the heightmap
|
|
|
|
};
|
|
|
|
|
2023-05-08 19:01:06 +02:00
|
|
|
uint32_t GetSmallMapOwnerPixels(TileIndex tile, TileType t, IncludeHeightmap include_heightmap);
|
2022-10-01 00:20:25 +02:00
|
|
|
|
2023-10-31 02:29:16 +01:00
|
|
|
Point GetSmallMapStationMiddle(const Window *w, const Station *st);
|
|
|
|
|
2010-02-08 22:19:41 +01:00
|
|
|
#endif /* SMALLMAP_GUI_H */
|