GUI that shows a small map of the world with metadata like owner or height. More...
#include "stdafx.h"#include "clear_map.h"#include "industry.h"#include "station_map.h"#include "landscape.h"#include "window_gui.h"#include "tree_map.h"#include "viewport_func.h"#include "town.h"#include "blitter/factory.hpp"#include "tunnelbridge_map.h"#include "strings_func.h"#include "core/endian_func.hpp"#include "vehicle_base.h"#include "sound_func.h"#include "window_func.h"#include "company_base.h"#include "table/strings.h"Go to the source code of this file.
Data Structures | |
| struct | LegendAndColour |
| Structure for holding relevant data for legends in small map. More... | |
| struct | SmallMapColourScheme |
| Colour scheme of the smallmap. More... | |
| struct | AndOr |
| class | SmallMapWindow |
| Class managing the smallmap window. More... | |
| class | NWidgetSmallmapDisplay |
| Custom container class for displaying smallmap with a vertically resizing legend panel. More... | |
Defines | |
| #define | MK(a, b) {a, b, INVALID_INDUSTRYTYPE, 0, INVALID_COMPANY, true, false, false} |
| Macro for ordinary entry of LegendAndColour. | |
| #define | MC(height) {0, STR_TINY_BLACK_HEIGHT, INVALID_INDUSTRYTYPE, height, INVALID_COMPANY, true, false, false} |
| Macro for a height legend entry with configurable colour. | |
| #define | MO(a, b) {a, b, INVALID_INDUSTRYTYPE, 0, INVALID_COMPANY, true, false, false} |
| Macro for non-company owned property entry of LegendAndColour. | |
| #define | MOEND() {0, 0, INVALID_INDUSTRYTYPE, 0, OWNER_NONE, true, true, false} |
| Macro used for forcing a rebuild of the owner legend the first time it is used. | |
| #define | MKEND() {0, STR_NULL, INVALID_INDUSTRYTYPE, 0, INVALID_COMPANY, true, true, false} |
| Macro for end of list marker in arrays of LegendAndColour. | |
| #define | MS(a, b) {a, b, INVALID_INDUSTRYTYPE, 0, INVALID_COMPANY, true, false, true} |
| Macro for break marker in arrays of LegendAndColour. | |
| #define | MKCOLOUR(x) TO_LE32X(x) |
Enumerations | |
| enum | SmallMapWindowWidgets { SM_WIDGET_CAPTION, SM_WIDGET_MAP_BORDER, SM_WIDGET_MAP, SM_WIDGET_LEGEND, SM_WIDGET_ZOOM_IN, SM_WIDGET_ZOOM_OUT, SM_WIDGET_CONTOUR, SM_WIDGET_VEHICLES, SM_WIDGET_INDUSTRIES, SM_WIDGET_ROUTES, SM_WIDGET_VEGETATION, SM_WIDGET_OWNERS, SM_WIDGET_CENTERMAP, SM_WIDGET_TOGGLETOWNNAME, SM_WIDGET_SELECT_BUTTONS, SM_WIDGET_ENABLE_ALL, SM_WIDGET_DISABLE_ALL, SM_WIDGET_SHOW_HEIGHT } |
Widget numbers of the small map window. More... | |
Functions | |
| void | BuildIndustriesLegend () |
| Fills an array for the industries legends. | |
| assert_compile (lengthof(_green_map_heights)==MAX_TILE_HEIGHT+1) | |
| assert_compile (lengthof(_dark_green_map_heights)==MAX_TILE_HEIGHT+1) | |
| assert_compile (lengthof(_violet_map_heights)==MAX_TILE_HEIGHT+1) | |
| void | BuildLandLegend () |
| void | BuildOwnerLegend () |
| Completes the array for the owned property legend. | |
| static uint32 | ApplyMask (uint32 colour, const AndOr *mask) |
| static TileType | GetEffectiveTileType (TileIndex tile) |
| static uint32 | GetSmallMapContoursPixels (TileIndex tile, TileType t) |
| Return the colour a tile would be displayed with in the small map in mode "Contour". | |
| static uint32 | GetSmallMapVehiclesPixels (TileIndex tile, TileType t) |
| Return the colour a tile would be displayed with in the small map in mode "Vehicles". | |
| static uint32 | GetSmallMapIndustriesPixels (TileIndex tile, TileType t) |
| Return the colour a tile would be displayed with in the small map in mode "Industries". | |
| static uint32 | GetSmallMapRoutesPixels (TileIndex tile, TileType t) |
| Return the colour a tile would be displayed with in the small map in mode "Routes". | |
| static uint32 | GetSmallMapVegetationPixels (TileIndex tile, TileType t) |
| Return the colour a tile would be displayed with in the smallmap in mode "Vegetation". | |
| static uint32 | GetSmallMapOwnerPixels (TileIndex tile, TileType t) |
| Return the colour a tile would be displayed with in the small map in mode "Owner". | |
| static NWidgetBase * | SmallMapDisplay (int *biggest_index) |
| void | ShowSmallMap () |
| bool | ScrollMainWindowTo (int x, int y, int z, bool instant) |
| Scrolls the main window to given coordinates. | |
Variables | |
| static int | _smallmap_industry_count |
| Number of used industries. | |
| static int | _smallmap_company_count |
| Number of entries in the owner legend. | |
| static const int | NUM_NO_COMPANY_ENTRIES = 4 |
| Number of entries in the owner legend that are not companies. | |
| static LegendAndColour | _legend_land_contours [] |
| Legend text giving the colours to look for on the minimap. | |
| static const LegendAndColour | _legend_vehicles [] |
| static const LegendAndColour | _legend_routes [] |
| static const LegendAndColour | _legend_vegetation [] |
| static LegendAndColour | _legend_land_owners [NUM_NO_COMPANY_ENTRIES+MAX_COMPANIES+1] |
| static LegendAndColour | _legend_from_industries [NUM_INDUSTRYTYPES+1] |
| Allow room for all industries, plus a terminator entry This is required in order to have the indutry slots all filled up. | |
| static uint | _industry_to_list_pos [NUM_INDUSTRYTYPES] |
| For connecting industry type to position in industries list(small map legend). | |
| static bool | _smallmap_show_heightmap = false |
| Show heightmap in industry and owner mode of smallmap window. | |
| static uint | _company_to_list_pos [MAX_COMPANIES] |
| For connecting company ID to position in owner list (small map legend). | |
| static const LegendAndColour *const | _legend_table [] |
| static const uint32 | _green_map_heights [] |
| Height map colours for the green colour scheme, ordered by height. | |
| static const uint32 | _dark_green_map_heights [] |
| Height map colours for the dark green colour scheme, ordered by height. | |
| static const uint32 | _violet_map_heights [] |
| Height map colours for the violet colour scheme, ordered by height. | |
| static const SmallMapColourScheme | _heightmap_schemes [] |
| Available colour schemes for height maps. | |
| static const AndOr | _smallmap_contours_andor [] |
| Colour masks for "Contour" and "Routes" modes. | |
| static const AndOr | _smallmap_vehicles_andor [] |
| Colour masks for "Vehicles", "Industry", and "Vegetation" modes. | |
| static const byte | _tiletype_importance [] |
| Mapping of tile type to importance of the tile (higher number means more interesting to show). | |
| static const uint32 | _vegetation_clear_bits [] |
| static const byte | _vehicle_type_colours [6] |
| Vehicle colours in SMT_VEHICLES mode. | |
| static const NWidgetPart | _nested_smallmap_display [] |
| Widget parts of the smallmap display. | |
| static const NWidgetPart | _nested_smallmap_bar [] |
| Widget parts of the smallmap legend bar + image buttons. | |
| static const NWidgetPart | _nested_smallmap_widgets [] |
| static const WindowDesc | _smallmap_desc (WDP_AUTO, 446, 314, WC_SMALLMAP, WC_NONE, WDF_UNCLICK_BUTTONS, _nested_smallmap_widgets, lengthof(_nested_smallmap_widgets)) |
GUI that shows a small map of the world with metadata like owner or height.
Definition in file smallmap_gui.cpp.
| #define MC | ( | height | ) | {0, STR_TINY_BLACK_HEIGHT, INVALID_INDUSTRYTYPE, height, INVALID_COMPANY, true, false, false} |
Macro for a height legend entry with configurable colour.
Definition at line 63 of file smallmap_gui.cpp.
| #define MOEND | ( | ) | {0, 0, INVALID_INDUSTRYTYPE, 0, OWNER_NONE, true, true, false} |
Macro used for forcing a rebuild of the owner legend the first time it is used.
Definition at line 69 of file smallmap_gui.cpp.
| #define MS | ( | a, | ||
| b | ||||
| ) | {a, b, INVALID_INDUSTRYTYPE, 0, INVALID_COMPANY, true, false, true} |
Macro for break marker in arrays of LegendAndColour.
It will have valid data, though
Definition at line 78 of file smallmap_gui.cpp.
Widget numbers of the small map window.
Definition at line 33 of file smallmap_gui.cpp.
Return the colour a tile would be displayed with in the small map in mode "Contour".
| tile | The tile of which we would like to get the colour. | |
| t | Effective tile type of the tile (see GetEffectiveTileType). |
Definition at line 410 of file smallmap_gui.cpp.
References _settings_client, ClientSettings::gui, SmallMapColourScheme::height_colours, GUISettings::smallmap_land_colour, and TileHeight().
Referenced by SmallMapWindow::GetTileColours().
Return the colour a tile would be displayed with in the small map in mode "Industries".
| tile | The tile of which we would like to get the colour. | |
| t | Effective tile type of the tile (see GetEffectiveTileType). |
Definition at line 436 of file smallmap_gui.cpp.
References _industry_to_list_pos, _settings_client, _smallmap_show_heightmap, SmallMapColourScheme::default_colour, Industry::GetByTile(), GetIndustrySpec(), ClientSettings::gui, SmallMapColourScheme::height_colours, IsTileOnWater(), IndustrySpec::map_colour, MP_INDUSTRY, MP_WATER, GUISettings::smallmap_land_colour, and TileHeight().
Referenced by SmallMapWindow::GetTileColours().
Return the colour a tile would be displayed with in the small map in mode "Owner".
| tile | The tile of which we would like to get the colour. | |
| t | Effective tile type of the tile (see GetEffectiveTileType). |
Definition at line 531 of file smallmap_gui.cpp.
References _company_to_list_pos, _settings_client, _smallmap_show_heightmap, LegendAndColour::colour, SmallMapColourScheme::default_colour, GetTileOwner(), ClientSettings::gui, SmallMapColourScheme::height_colours, MAX_COMPANIES, MP_HOUSE, MP_INDUSTRY, MP_WATER, OWNER_NONE, OWNER_TOWN, OWNER_WATER, GUISettings::smallmap_land_colour, and TileHeight().
Referenced by SmallMapWindow::GetTileColours().
Return the colour a tile would be displayed with in the small map in mode "Routes".
| tile | The tile of which we would like to get the colour. | |
| t | Effective tile type of the tile (see GetEffectiveTileType). |
Definition at line 459 of file smallmap_gui.cpp.
References _settings_client, SmallMapColourScheme::default_colour, GetRailType(), GetRailTypeInfo(), GetStationType(), ClientSettings::gui, RailtypeInfo::map_colour, MP_RAILWAY, MP_STATION, and GUISettings::smallmap_land_colour.
Referenced by SmallMapWindow::GetTileColours().
Return the colour a tile would be displayed with in the smallmap in mode "Vegetation".
| tile | The tile of which we would like to get the colour. | |
| t | Effective tile type of the tile (see GetEffectiveTileType). |
Definition at line 504 of file smallmap_gui.cpp.
References _settings_game, CLEAR_GRASS, GameSettings::game_creation, GetClearDensity(), GetClearGround(), GetTreeGround(), IsClearGround(), IsTileForestIndustry(), GameCreationSettings::landscape, MP_CLEAR, MP_INDUSTRY, MP_TREES, TREE_GROUND_ROUGH_SNOW, and TREE_GROUND_SNOW_DESERT.
Referenced by SmallMapWindow::GetTileColours().
Return the colour a tile would be displayed with in the small map in mode "Vehicles".
| tile | The tile of which we would like to get the colour. | |
| t | Effective tile type of the tile (see GetEffectiveTileType). |
Definition at line 423 of file smallmap_gui.cpp.
References _settings_client, SmallMapColourScheme::default_colour, ClientSettings::gui, and GUISettings::smallmap_land_colour.
Referenced by SmallMapWindow::GetTileColours().
| bool ScrollMainWindowTo | ( | int | x, | |
| int | y, | |||
| int | z, | |||
| bool | instant | |||
| ) |
Scrolls the main window to given coordinates.
| x | x coordinate | |
| y | y coordinate | |
| z | z coordinate; -1 to scroll to terrain height | |
| instant | scroll instantly (meaningful only when smooth_scrolling is active) |
Definition at line 1725 of file smallmap_gui.cpp.
References FindWindowById(), and ScrollWindowTo().
Referenced by HandleViewportScroll(), VehicleViewWindow::OnClick(), NewsWindow::OnClick(), MainWindow::OnKeyPress(), and ScrollMainWindowToTile().
const uint32 _dark_green_map_heights[] [static] |
{
MKCOLOUR(0x60606060),
MKCOLOUR(0x60616061),
MKCOLOUR(0x61616161),
MKCOLOUR(0x61626162),
MKCOLOUR(0x62626262),
MKCOLOUR(0x62636263),
MKCOLOUR(0x63636363),
MKCOLOUR(0x63646364),
MKCOLOUR(0x64646464),
MKCOLOUR(0x64656465),
MKCOLOUR(0x65656565),
MKCOLOUR(0x65666566),
MKCOLOUR(0x66666666),
MKCOLOUR(0x66676667),
MKCOLOUR(0x67676767),
MKCOLOUR(0x67676767),
}
Height map colours for the dark green colour scheme, ordered by height.
Definition at line 241 of file smallmap_gui.cpp.
const uint32 _green_map_heights[] [static] |
{
MKCOLOUR(0x5A5A5A5A),
MKCOLOUR(0x5A5B5A5B),
MKCOLOUR(0x5B5B5B5B),
MKCOLOUR(0x5B5C5B5C),
MKCOLOUR(0x5C5C5C5C),
MKCOLOUR(0x5C5D5C5D),
MKCOLOUR(0x5D5D5D5D),
MKCOLOUR(0x5D5E5D5E),
MKCOLOUR(0x5E5E5E5E),
MKCOLOUR(0x5E5F5E5F),
MKCOLOUR(0x5F5F5F5F),
MKCOLOUR(0x5F1F5F1F),
MKCOLOUR(0x1F1F1F1F),
MKCOLOUR(0x1F271F27),
MKCOLOUR(0x27272727),
MKCOLOUR(0x27272727),
}
Height map colours for the green colour scheme, ordered by height.
Definition at line 220 of file smallmap_gui.cpp.
const SmallMapColourScheme _heightmap_schemes[] [static] |
{
{_green_map_heights, MKCOLOUR(0x54545454)},
{_dark_green_map_heights, MKCOLOUR(0x62626262)},
{_violet_map_heights, MKCOLOUR(0x82828282)},
}
Available colour schemes for height maps.
Definition at line 289 of file smallmap_gui.cpp.
LegendAndColour _legend_land_contours[] [static] |
{
MC(0),
MC(4),
MC(8),
MC(12),
MC(14),
MS(0xD7, STR_SMALLMAP_LEGENDA_ROADS),
MK(0x0A, STR_SMALLMAP_LEGENDA_RAILROADS),
MK(0x98, STR_SMALLMAP_LEGENDA_STATIONS_AIRPORTS_DOCKS),
MK(0xB5, STR_SMALLMAP_LEGENDA_BUILDINGS_INDUSTRIES),
MK(0x0F, STR_SMALLMAP_LEGENDA_VEHICLES),
}
Legend text giving the colours to look for on the minimap.
Definition at line 93 of file smallmap_gui.cpp.
LegendAndColour _legend_land_owners[NUM_NO_COMPANY_ENTRIES+MAX_COMPANIES+1] [static] |
const LegendAndColour _legend_routes[] [static] |
{
MK(0xD7, STR_SMALLMAP_LEGENDA_ROADS),
MK(0x0A, STR_SMALLMAP_LEGENDA_RAILROADS),
MK(0xB5, STR_SMALLMAP_LEGENDA_BUILDINGS_INDUSTRIES),
MS(0x56, STR_SMALLMAP_LEGENDA_RAILROAD_STATION),
MK(0xC2, STR_SMALLMAP_LEGENDA_TRUCK_LOADING_BAY),
MK(0xBF, STR_SMALLMAP_LEGENDA_BUS_STATION),
MK(0xB8, STR_SMALLMAP_LEGENDA_AIRPORT_HELIPORT),
MK(0x98, STR_SMALLMAP_LEGENDA_DOCK),
}
Definition at line 120 of file smallmap_gui.cpp.
const LegendAndColour* const _legend_table[] [static] |
{
_legend_land_contours,
_legend_vehicles,
_legend_from_industries,
_legend_routes,
_legend_vegetation,
_legend_land_owners,
}
Definition at line 208 of file smallmap_gui.cpp.
const LegendAndColour _legend_vegetation[] [static] |
{
MK(0x52, STR_SMALLMAP_LEGENDA_ROUGH_LAND),
MK(0x54, STR_SMALLMAP_LEGENDA_GRASS_LAND),
MK(0x37, STR_SMALLMAP_LEGENDA_BARE_LAND),
MK(0x25, STR_SMALLMAP_LEGENDA_FIELDS),
MK(0x57, STR_SMALLMAP_LEGENDA_TREES),
MK(0xD0, STR_SMALLMAP_LEGENDA_FOREST),
MS(0x0A, STR_SMALLMAP_LEGENDA_ROCKS),
MK(0xC2, STR_SMALLMAP_LEGENDA_DESERT),
MK(0x98, STR_SMALLMAP_LEGENDA_SNOW),
MK(0xD7, STR_SMALLMAP_LEGENDA_TRANSPORT_ROUTES),
MK(0xB5, STR_SMALLMAP_LEGENDA_BUILDINGS_INDUSTRIES),
}
Definition at line 133 of file smallmap_gui.cpp.
const LegendAndColour _legend_vehicles[] [static] |
{
MK(0xB8, STR_SMALLMAP_LEGENDA_TRAINS),
MK(0xBF, STR_SMALLMAP_LEGENDA_ROAD_VEHICLES),
MK(0x98, STR_SMALLMAP_LEGENDA_SHIPS),
MK(0x0F, STR_SMALLMAP_LEGENDA_AIRCRAFT),
MS(0xD7, STR_SMALLMAP_LEGENDA_TRANSPORT_ROUTES),
MK(0xB5, STR_SMALLMAP_LEGENDA_BUILDINGS_INDUSTRIES),
}
Definition at line 109 of file smallmap_gui.cpp.
const NWidgetPart _nested_smallmap_bar[] [static] |
Widget parts of the smallmap legend bar + image buttons.
Definition at line 1631 of file smallmap_gui.cpp.
const NWidgetPart _nested_smallmap_display[] [static] |
{
NWidget(WWT_PANEL, COLOUR_BROWN, SM_WIDGET_MAP_BORDER),
NWidget(WWT_INSET, COLOUR_BROWN, SM_WIDGET_MAP), SetMinimalSize(346, 140), SetResize(1, 1), SetPadding(2, 2, 2, 2), EndContainer(),
EndContainer(),
}
Widget parts of the smallmap display.
Definition at line 1624 of file smallmap_gui.cpp.
const NWidgetPart _nested_smallmap_widgets[] [static] |
{
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_BROWN),
NWidget(WWT_CAPTION, COLOUR_BROWN, SM_WIDGET_CAPTION), SetDataTip(STR_SMALLMAP_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
NWidget(WWT_SHADEBOX, COLOUR_BROWN),
NWidget(WWT_STICKYBOX, COLOUR_BROWN),
EndContainer(),
NWidgetFunction(SmallMapDisplay),
NWidget(NWID_HORIZONTAL),
NWidget(WWT_PANEL, COLOUR_BROWN),
NWidget(NWID_HORIZONTAL),
NWidget(NWID_SELECTION, INVALID_COLOUR, SM_WIDGET_SELECT_BUTTONS),
NWidget(NWID_HORIZONTAL, NC_EQUALSIZE),
NWidget(WWT_PUSHTXTBTN, COLOUR_BROWN, SM_WIDGET_ENABLE_ALL), SetDataTip(STR_SMALLMAP_ENABLE_ALL, STR_NULL),
NWidget(WWT_PUSHTXTBTN, COLOUR_BROWN, SM_WIDGET_DISABLE_ALL), SetDataTip(STR_SMALLMAP_DISABLE_ALL, STR_NULL),
NWidget(WWT_TEXTBTN, COLOUR_BROWN, SM_WIDGET_SHOW_HEIGHT), SetDataTip(STR_SMALLMAP_SHOW_HEIGHT, STR_SMALLMAP_TOOLTIP_SHOW_HEIGHT),
EndContainer(),
NWidget(NWID_SPACER), SetFill(1, 1),
EndContainer(),
NWidget(NWID_SPACER), SetFill(1, 0), SetResize(1, 0),
EndContainer(),
EndContainer(),
NWidget(WWT_RESIZEBOX, COLOUR_BROWN),
EndContainer(),
}
Definition at line 1678 of file smallmap_gui.cpp.
const AndOr _smallmap_contours_andor[] [static] |
{
{MKCOLOUR(0x00000000), MKCOLOUR(0xFFFFFFFF)},
{MKCOLOUR(0x000A0A00), MKCOLOUR(0xFF0000FF)},
{MKCOLOUR(0x00D7D700), MKCOLOUR(0xFF0000FF)},
{MKCOLOUR(0x00B5B500), MKCOLOUR(0xFF0000FF)},
{MKCOLOUR(0x00000000), MKCOLOUR(0xFFFFFFFF)},
{MKCOLOUR(0x98989898), MKCOLOUR(0x00000000)},
{MKCOLOUR(0xCACACACA), MKCOLOUR(0x00000000)},
{MKCOLOUR(0x00000000), MKCOLOUR(0xFFFFFFFF)},
{MKCOLOUR(0xB5B5B5B5), MKCOLOUR(0x00000000)},
{MKCOLOUR(0x00000000), MKCOLOUR(0xFFFFFFFF)},
{MKCOLOUR(0x00B5B500), MKCOLOUR(0xFF0000FF)},
{MKCOLOUR(0x000A0A00), MKCOLOUR(0xFF0000FF)},
}
Colour masks for "Contour" and "Routes" modes.
Definition at line 340 of file smallmap_gui.cpp.
bool _smallmap_show_heightmap = false [static] |
Show heightmap in industry and owner mode of smallmap window.
Definition at line 173 of file smallmap_gui.cpp.
Referenced by GetSmallMapIndustriesPixels(), GetSmallMapOwnerPixels(), and SmallMapWindow::OnClick().
const AndOr _smallmap_vehicles_andor[] [static] |
{
{MKCOLOUR(0x00000000), MKCOLOUR(0xFFFFFFFF)},
{MKCOLOUR(0x00D7D700), MKCOLOUR(0xFF0000FF)},
{MKCOLOUR(0x00D7D700), MKCOLOUR(0xFF0000FF)},
{MKCOLOUR(0x00B5B500), MKCOLOUR(0xFF0000FF)},
{MKCOLOUR(0x00000000), MKCOLOUR(0xFFFFFFFF)},
{MKCOLOUR(0x00D7D700), MKCOLOUR(0xFF0000FF)},
{MKCOLOUR(0xCACACACA), MKCOLOUR(0x00000000)},
{MKCOLOUR(0x00000000), MKCOLOUR(0xFFFFFFFF)},
{MKCOLOUR(0xB5B5B5B5), MKCOLOUR(0x00000000)},
{MKCOLOUR(0x00000000), MKCOLOUR(0xFFFFFFFF)},
{MKCOLOUR(0x00B5B500), MKCOLOUR(0xFF0000FF)},
{MKCOLOUR(0x00D7D700), MKCOLOUR(0xFF0000FF)},
}
Colour masks for "Vehicles", "Industry", and "Vegetation" modes.
Definition at line 356 of file smallmap_gui.cpp.
const byte _tiletype_importance[] [static] |
{
2,
8,
7,
5,
2,
9,
2,
1,
6,
8,
2,
0,
}
Mapping of tile type to importance of the tile (higher number means more interesting to show).
Definition at line 372 of file smallmap_gui.cpp.
const uint32 _vegetation_clear_bits[] [static] |
{
MKCOLOUR(0x54545454),
MKCOLOUR(0x52525252),
MKCOLOUR(0x0A0A0A0A),
MKCOLOUR(0x25252525),
MKCOLOUR(0x98989898),
MKCOLOUR(0xC2C2C2C2),
MKCOLOUR(0x54545454),
MKCOLOUR(0x54545454),
}
Definition at line 486 of file smallmap_gui.cpp.
const byte _vehicle_type_colours[6] [static] |
{
184, 191, 152, 15, 215, 184
}
Vehicle colours in SMT_VEHICLES mode.
Indexed by VehicleTypeByte.
Definition at line 557 of file smallmap_gui.cpp.
const uint32 _violet_map_heights[] [static] |
{
MKCOLOUR(0x80808080),
MKCOLOUR(0x80818081),
MKCOLOUR(0x81818181),
MKCOLOUR(0x81828182),
MKCOLOUR(0x82828282),
MKCOLOUR(0x82838283),
MKCOLOUR(0x83838383),
MKCOLOUR(0x83848384),
MKCOLOUR(0x84848484),
MKCOLOUR(0x84858485),
MKCOLOUR(0x85858585),
MKCOLOUR(0x85868586),
MKCOLOUR(0x86868686),
MKCOLOUR(0x86878687),
MKCOLOUR(0x87878787),
MKCOLOUR(0x87878787),
}
Height map colours for the violet colour scheme, ordered by height.
Definition at line 262 of file smallmap_gui.cpp.
1.7.1