Merge commit '13.0-RC1~2'
This commit is contained in:
@@ -34,7 +34,7 @@ add_files(
|
||||
town_land.h
|
||||
townname.h
|
||||
track_land.h
|
||||
train_cmd.h
|
||||
train_sprites.h
|
||||
tree_land.h
|
||||
unicode.h
|
||||
water_land.h
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
* @param classes Classes of this cargo type. @see CargoClass
|
||||
*/
|
||||
#define MK(bt, label, colour, weight, mult, ip, td1, td2, freight, te, str_plural, str_singular, str_volume, classes) \
|
||||
{bt, label, colour, colour, weight, mult, ip, {td1, td2}, freight, te, 0, 0, \
|
||||
{bt, label, colour, colour, weight, mult, ip, {td1, td2}, freight, te, 0, \
|
||||
MK_STR_CARGO_PLURAL(str_plural), MK_STR_CARGO_SINGULAR(str_singular), str_volume, MK_STR_QUANTITY(str_plural), MK_STR_ABBREV(str_plural), \
|
||||
MK_SPRITE(str_plural), classes, nullptr, nullptr, 0}
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@ enum StringControlCode {
|
||||
SCC_CARGO_TINY,
|
||||
SCC_CARGO_LIST,
|
||||
SCC_POWER,
|
||||
SCC_POWER_TO_WEIGHT,
|
||||
SCC_VOLUME_LONG,
|
||||
SCC_VOLUME_SHORT,
|
||||
SCC_WEIGHT_LONG,
|
||||
|
||||
@@ -327,7 +327,9 @@ struct SortableSpriteStruct {
|
||||
/** Distance between wire and rail */
|
||||
static const uint ELRAIL_ELEVATION = 10;
|
||||
/** Wires that a draw one level higher than the north corner. */
|
||||
static const uint ELRAIL_ELEVRAISE = ELRAIL_ELEVATION + TILE_HEIGHT;
|
||||
static const uint ELRAIL_ELEVRAISE = ELRAIL_ELEVATION + TILE_HEIGHT + 1;
|
||||
/** Wires that a draw one level lower than the north corner. */
|
||||
static const uint ELRAIL_ELEVLOWER = ELRAIL_ELEVATION - 1;
|
||||
|
||||
static const SortableSpriteStruct RailCatenarySpriteData[] = {
|
||||
/* X direction
|
||||
@@ -345,9 +347,9 @@ static const SortableSpriteStruct RailCatenarySpriteData[] = {
|
||||
|
||||
/* "down" tiles
|
||||
* Wires */
|
||||
{ WSO_X_SW_DOWN, 0, 7, 15, 8, 1, ELRAIL_ELEVATION }, //! 6: Wire in X pitch down, pylon on the SW end
|
||||
{ WSO_X_NE_DOWN, 0, 7, 15, 8, 1, ELRAIL_ELEVATION }, //! 7: Wire in X pitch down, pylon on the NE end
|
||||
{ WSO_X_SHORT_DOWN, 0, 7, 15, 8, 1, ELRAIL_ELEVATION }, //! 8: Wire in X pitch down, pylon on both ends
|
||||
{ WSO_X_SW_DOWN, 0, 7, 15, 8, 1, ELRAIL_ELEVLOWER }, //! 6: Wire in X pitch down, pylon on the SW end
|
||||
{ WSO_X_NE_DOWN, 0, 7, 15, 8, 1, ELRAIL_ELEVLOWER }, //! 7: Wire in X pitch down, pylon on the NE end
|
||||
{ WSO_X_SHORT_DOWN, 0, 7, 15, 8, 1, ELRAIL_ELEVLOWER }, //! 8: Wire in X pitch down, pylon on both ends
|
||||
|
||||
|
||||
/* Y direction
|
||||
@@ -365,9 +367,9 @@ static const SortableSpriteStruct RailCatenarySpriteData[] = {
|
||||
|
||||
/* "down" tiles
|
||||
* Wires */
|
||||
{ WSO_Y_SE_DOWN, 7, 0, 8, 15, 1, ELRAIL_ELEVATION }, //!15: Wire in Y pitch down, pylon on the SE end
|
||||
{ WSO_Y_NW_DOWN, 7, 0, 8, 15, 1, ELRAIL_ELEVATION }, //!16: Wire in Y pitch down, pylon on the NW end
|
||||
{ WSO_Y_SHORT_DOWN, 7, 0, 8, 15, 1, ELRAIL_ELEVATION }, //!17: Wire in Y pitch down, pylon on both ends
|
||||
{ WSO_Y_SE_DOWN, 7, 0, 8, 15, 1, ELRAIL_ELEVLOWER }, //!15: Wire in Y pitch down, pylon on the SE end
|
||||
{ WSO_Y_NW_DOWN, 7, 0, 8, 15, 1, ELRAIL_ELEVLOWER }, //!16: Wire in Y pitch down, pylon on the NW end
|
||||
{ WSO_Y_SHORT_DOWN, 7, 0, 8, 15, 1, ELRAIL_ELEVLOWER }, //!17: Wire in Y pitch down, pylon on both ends
|
||||
|
||||
/* NS Direction */
|
||||
{ WSO_NS_SHORT, 8, 0, 8, 8, 1, ELRAIL_ELEVATION }, //!18: LEFT trackbit wire, pylon on both ends
|
||||
|
||||
+6
-6
@@ -24,7 +24,7 @@
|
||||
* @param f Bitmask of the climates
|
||||
* @note the 5 between b and f is the load amount
|
||||
*/
|
||||
#define MT(a, b, c, d, e, f) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, f, e, 0, 8, 1 << EF_RAIL_FLIPS, 0, 0, STR_EMPTY, CARGO_AGING_TICKS }
|
||||
#define MT(a, b, c, d, e, f) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, f, e, 0, 8, 0, 0, 0, STR_EMPTY, CARGO_AGING_TICKS, INVALID_ENGINE, ExtraEngineFlags::None }
|
||||
|
||||
/**
|
||||
* Writes the properties of a multiple-unit train into the EngineInfo struct.
|
||||
@@ -37,7 +37,7 @@
|
||||
* @param f Bitmask of the climates
|
||||
* @note the 5 between b and f is the load amount
|
||||
*/
|
||||
#define MM(a, b, c, d, e, f) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, f, e, 0, 8, 1 << EF_RAIL_FLIPS | 1 << EF_RAIL_IS_MU, 0, 0, STR_EMPTY, CARGO_AGING_TICKS }
|
||||
#define MM(a, b, c, d, e, f) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, f, e, 0, 8, 1 << EF_RAIL_IS_MU, 0, 0, STR_EMPTY, CARGO_AGING_TICKS, INVALID_ENGINE, ExtraEngineFlags::None }
|
||||
|
||||
/**
|
||||
* Writes the properties of a train carriage into the EngineInfo struct.
|
||||
@@ -50,7 +50,7 @@
|
||||
* @see MT
|
||||
* @note the 5 between b and f is the load amount
|
||||
*/
|
||||
#define MW(a, b, c, d, e, f) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, f, e, 0, 8, 1 << EF_RAIL_FLIPS, 0, 0, STR_EMPTY, CARGO_AGING_TICKS }
|
||||
#define MW(a, b, c, d, e, f) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, f, e, 0, 8, 0, 0, 0, STR_EMPTY, CARGO_AGING_TICKS, INVALID_ENGINE, ExtraEngineFlags::None }
|
||||
|
||||
/**
|
||||
* Writes the properties of a road vehicle into the EngineInfo struct.
|
||||
@@ -63,7 +63,7 @@
|
||||
* @param f Bitmask of the climates
|
||||
* @note the 5 between b and f is the load amount
|
||||
*/
|
||||
#define MR(a, b, c, d, e, f) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, f, e, 0, 8, 0, 0, 0, STR_EMPTY, CARGO_AGING_TICKS }
|
||||
#define MR(a, b, c, d, e, f) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, f, e, 0, 8, 0, 0, 0, STR_EMPTY, CARGO_AGING_TICKS, INVALID_ENGINE, ExtraEngineFlags::None }
|
||||
|
||||
/**
|
||||
* Writes the properties of a ship into the EngineInfo struct.
|
||||
@@ -75,7 +75,7 @@
|
||||
* @param f Bitmask of the climates
|
||||
* @note the 10 between b and f is the load amount
|
||||
*/
|
||||
#define MS(a, b, c, d, e, f) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 10, f, e, 0, 8, 0, 0, 0, STR_EMPTY, CARGO_AGING_TICKS }
|
||||
#define MS(a, b, c, d, e, f) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 10, f, e, 0, 8, 0, 0, 0, STR_EMPTY, CARGO_AGING_TICKS, INVALID_ENGINE, ExtraEngineFlags::None }
|
||||
|
||||
/**
|
||||
* Writes the properties of an aeroplane into the EngineInfo struct.
|
||||
@@ -86,7 +86,7 @@
|
||||
* @param e Bitmask of the climates
|
||||
* @note the 20 between b and e is the load amount
|
||||
*/
|
||||
#define MA(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 20, e, CT_INVALID, 0, 8, 0, 0, 0, STR_EMPTY, CARGO_AGING_TICKS }
|
||||
#define MA(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 20, e, CT_INVALID, 0, 8, 0, 0, 0, STR_EMPTY, CARGO_AGING_TICKS, INVALID_ENGINE, ExtraEngineFlags::None }
|
||||
|
||||
/* Climates
|
||||
* T = Temperate
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* $Id$ */
|
||||
|
||||
/*
|
||||
* 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.
|
||||
|
||||
@@ -53,6 +53,46 @@ static const DrawTileSprites _crossing_layout = {
|
||||
{0, PAL_NONE}, _crossing_layout_ALL
|
||||
};
|
||||
|
||||
static const DrawTileSeqStruct _crossing_layout_SW_ALL[] = {
|
||||
TILE_SEQ_LINE(6, PAL_NONE, 13, 0, 3, 3)
|
||||
TILE_SEQ_LINE(8, PAL_NONE, 13, 13, 3, 3)
|
||||
TILE_SEQ_END()
|
||||
};
|
||||
|
||||
static const DrawTileSprites _crossing_layout_SW = {
|
||||
{0, PAL_NONE}, _crossing_layout_SW_ALL
|
||||
};
|
||||
|
||||
static const DrawTileSeqStruct _crossing_layout_NW_ALL[] = {
|
||||
TILE_SEQ_LINE(2, PAL_NONE, 0, 0, 3, 3)
|
||||
TILE_SEQ_LINE(6, PAL_NONE, 13, 0, 3, 3)
|
||||
TILE_SEQ_END()
|
||||
};
|
||||
|
||||
static const DrawTileSprites _crossing_layout_NW = {
|
||||
{0, PAL_NONE}, _crossing_layout_NW_ALL
|
||||
};
|
||||
|
||||
static const DrawTileSeqStruct _crossing_layout_NE_ALL[] = {
|
||||
TILE_SEQ_LINE(2, PAL_NONE, 0, 0, 3, 3)
|
||||
TILE_SEQ_LINE(4, PAL_NONE, 0, 13, 3, 3)
|
||||
TILE_SEQ_END()
|
||||
};
|
||||
|
||||
static const DrawTileSprites _crossing_layout_NE = {
|
||||
{0, PAL_NONE}, _crossing_layout_NE_ALL
|
||||
};
|
||||
|
||||
static const DrawTileSeqStruct _crossing_layout_SE_ALL[] = {
|
||||
TILE_SEQ_LINE(4, PAL_NONE, 0, 13, 3, 3)
|
||||
TILE_SEQ_LINE(8, PAL_NONE, 13, 13, 3, 3)
|
||||
TILE_SEQ_END()
|
||||
};
|
||||
|
||||
static const DrawTileSprites _crossing_layout_SE = {
|
||||
{0, PAL_NONE}, _crossing_layout_SE_ALL
|
||||
};
|
||||
|
||||
#undef TILE_SEQ_LINE
|
||||
#undef TILE_SEQ_END
|
||||
|
||||
|
||||
@@ -265,11 +265,11 @@ from = SLV_97
|
||||
flags = SF_GUI_DROPDOWN
|
||||
def = 0
|
||||
min = 0
|
||||
max = 2
|
||||
max = 3
|
||||
interval = 1
|
||||
str = STR_CONFIG_SETTING_CITY_APPROVAL
|
||||
strhelp = STR_CONFIG_SETTING_CITY_APPROVAL_HELPTEXT
|
||||
strval = STR_CITY_APPROVAL_PERMISSIVE
|
||||
strval = STR_CITY_APPROVAL_LENIENT
|
||||
post_cb = DifficultyNoiseChange
|
||||
|
||||
[SDTG_VAR]
|
||||
|
||||
@@ -123,7 +123,7 @@ var = economy.bribe
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_BRIBE
|
||||
strhelp = STR_CONFIG_SETTING_BRIBE_HELPTEXT
|
||||
post_cb = [](auto) { SetWindowClassesDirty(WC_TOWN_AUTHORITY); }
|
||||
post_cb = [](auto) { InvalidateWindowClassesData(WC_TOWN_AUTHORITY); }
|
||||
cat = SC_BASIC
|
||||
|
||||
[SDT_BOOL]
|
||||
@@ -132,7 +132,7 @@ from = SLV_79
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_ALLOW_EXCLUSIVE
|
||||
strhelp = STR_CONFIG_SETTING_ALLOW_EXCLUSIVE_HELPTEXT
|
||||
post_cb = [](auto) { SetWindowClassesDirty(WC_TOWN_AUTHORITY); }
|
||||
post_cb = [](auto) { InvalidateWindowClassesData(WC_TOWN_AUTHORITY); }
|
||||
cat = SC_BASIC
|
||||
|
||||
[SDT_BOOL]
|
||||
@@ -141,7 +141,7 @@ from = SLV_165
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_ALLOW_FUND_BUILDINGS
|
||||
strhelp = STR_CONFIG_SETTING_ALLOW_FUND_BUILDINGS_HELPTEXT
|
||||
post_cb = [](auto) { SetWindowClassesDirty(WC_TOWN_AUTHORITY); }
|
||||
post_cb = [](auto) { InvalidateWindowClassesData(WC_TOWN_AUTHORITY); }
|
||||
cat = SC_BASIC
|
||||
|
||||
[SDT_BOOL]
|
||||
@@ -150,7 +150,7 @@ from = SLV_160
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_ALLOW_FUND_ROAD
|
||||
strhelp = STR_CONFIG_SETTING_ALLOW_FUND_ROAD_HELPTEXT
|
||||
post_cb = [](auto) { SetWindowClassesDirty(WC_TOWN_AUTHORITY); }
|
||||
post_cb = [](auto) { InvalidateWindowClassesData(WC_TOWN_AUTHORITY); }
|
||||
cat = SC_BASIC
|
||||
|
||||
[SDT_BOOL]
|
||||
@@ -284,6 +284,14 @@ min = 800
|
||||
max = 65535
|
||||
cat = SC_EXPERT
|
||||
|
||||
[SDT_VAR]
|
||||
var = economy.town_noise_population[3]
|
||||
type = SLE_UINT16
|
||||
def = 400
|
||||
min = 100
|
||||
max = 65535
|
||||
cat = SC_EXPERT
|
||||
|
||||
[SDT_BOOL]
|
||||
var = economy.infrastructure_maintenance
|
||||
from = SLV_166
|
||||
|
||||
@@ -144,7 +144,7 @@ max = 1
|
||||
full = _roadsides
|
||||
str = STR_CONFIG_SETTING_ROAD_SIDE
|
||||
strhelp = STR_CONFIG_SETTING_ROAD_SIDE_HELPTEXT
|
||||
strval = STR_GAME_OPTIONS_ROAD_VEHICLES_DROPDOWN_LEFT
|
||||
strval = STR_CONFIG_SETTING_ROAD_SIDE_LEFT
|
||||
pre_cb = CheckRoadSide
|
||||
cat = SC_BASIC
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
static void v_PositionMainToolbar(int32 new_value);
|
||||
static void v_PositionStatusbar(int32 new_value);
|
||||
static void RedrawSmallmap(int32 new_value);
|
||||
static void UpdateLinkgraphColours(int32 new_value);
|
||||
static void InvalidateCompanyLiveryWindow(int32 new_value);
|
||||
static void InvalidateNewGRFChangeWindows(int32 new_value);
|
||||
static void ZoomMinMaxChanged(int32 new_value);
|
||||
@@ -186,11 +187,10 @@ strval = STR_CONFIG_SETTING_HOVER_DELAY_VALUE
|
||||
[SDTC_OMANY]
|
||||
var = gui.osk_activation
|
||||
type = SLE_UINT8
|
||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
|
||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
|
||||
str = STR_CONFIG_SETTING_OSK_ACTIVATION
|
||||
strhelp = STR_CONFIG_SETTING_OSK_ACTIVATION_HELPTEXT
|
||||
strval = STR_CONFIG_SETTING_OSK_ACTIVATION_DISABLED
|
||||
flags = SF_GUI_DROPDOWN
|
||||
full = _osk_activation
|
||||
def = 0
|
||||
min = 0
|
||||
@@ -362,6 +362,19 @@ strhelp = STR_CONFIG_SETTING_SMALLMAP_LAND_COLOUR_HELPTEXT
|
||||
strval = STR_CONFIG_SETTING_SMALLMAP_LAND_COLOUR_GREEN
|
||||
post_cb = RedrawSmallmap
|
||||
|
||||
[SDTC_VAR]
|
||||
var = gui.linkgraph_colours
|
||||
type = SLE_UINT8
|
||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
|
||||
def = 0
|
||||
min = 0
|
||||
max = 3
|
||||
str = STR_CONFIG_SETTING_LINKGRAPH_COLOURS
|
||||
strhelp = STR_CONFIG_SETTING_LINKGRAPH_COLOURS_HELPTEXT
|
||||
strval = STR_CONFIG_SETTING_LINKGRAPH_COLOURS_GREEN_TO_RED
|
||||
post_cb = UpdateLinkgraphColours
|
||||
cat = SC_BASIC
|
||||
|
||||
[SDTC_VAR]
|
||||
var = gui.liveries
|
||||
type = SLE_UINT8
|
||||
@@ -708,14 +721,6 @@ str = STR_CONFIG_SETTING_PERSISTENT_BUILDINGTOOLS
|
||||
strhelp = STR_CONFIG_SETTING_PERSISTENT_BUILDINGTOOLS_HELPTEXT
|
||||
cat = SC_BASIC
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.expenses_layout
|
||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_EXPENSES_LAYOUT
|
||||
strhelp = STR_CONFIG_SETTING_EXPENSES_LAYOUT_HELPTEXT
|
||||
post_cb = [](auto) { MarkWholeScreenDirty(); }
|
||||
|
||||
[SDTC_VAR]
|
||||
var = gui.station_gui_group_order
|
||||
type = SLE_UINT8
|
||||
@@ -773,6 +778,15 @@ strhelp = STR_CONFIG_SETTING_SHOW_NEWGRF_NAME_HELPTEXT
|
||||
post_cb = [](auto) { MarkWholeScreenDirty(); }
|
||||
cat = SC_ADVANCED
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.show_cargo_in_vehicle_lists
|
||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
|
||||
def = false
|
||||
str = STR_CONFIG_SETTING_SHOW_CARGO_IN_LISTS
|
||||
strhelp = STR_CONFIG_SETTING_SHOW_CARGO_IN_LISTS_HELPTEXT
|
||||
post_cb = [](auto) { MarkWholeScreenDirty(); }
|
||||
cat = SC_ADVANCED
|
||||
|
||||
; For the dedicated build we'll enable dates in logs by default.
|
||||
[SDTC_BOOL]
|
||||
ifdef = DEDICATED
|
||||
@@ -906,3 +920,11 @@ min = 1
|
||||
max = 65535
|
||||
cat = SC_EXPERT
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.scale_bevels
|
||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
|
||||
def = true
|
||||
post_cb = [](auto) { SetupWidgetDimensions(); ReInitAllWindows(true); }
|
||||
cat = SC_BASIC
|
||||
startup = true
|
||||
|
||||
|
||||
@@ -181,35 +181,35 @@ def = false
|
||||
ifdef = HAS_TRUETYPE_FONT
|
||||
name = ""small_font""
|
||||
type = SLE_STR
|
||||
var = _freetype.small.font
|
||||
var = _fcsettings.small.font
|
||||
def = ""fonts/Roboto-Bold.ttf""
|
||||
|
||||
[SDTG_SSTR]
|
||||
ifdef = HAS_TRUETYPE_FONT
|
||||
name = ""medium_font""
|
||||
type = SLE_STR
|
||||
var = _freetype.medium.font
|
||||
var = _fcsettings.medium.font
|
||||
def = ""fonts/Roboto-Bold.ttf""
|
||||
|
||||
[SDTG_SSTR]
|
||||
ifdef = HAS_TRUETYPE_FONT
|
||||
name = ""large_font""
|
||||
type = SLE_STR
|
||||
var = _freetype.large.font
|
||||
var = _fcsettings.large.font
|
||||
def = ""fonts/DroidSerif-Bold.ttf""
|
||||
|
||||
[SDTG_SSTR]
|
||||
ifdef = HAS_TRUETYPE_FONT
|
||||
name = ""mono_font""
|
||||
type = SLE_STR
|
||||
var = _freetype.mono.font
|
||||
var = _fcsettings.mono.font
|
||||
def = ""fonts/DroidSansMono.ttf""
|
||||
|
||||
[SDTG_VAR]
|
||||
ifdef = HAS_TRUETYPE_FONT
|
||||
name = ""small_size""
|
||||
type = SLE_UINT
|
||||
var = _freetype.small.size
|
||||
var = _fcsettings.small.size
|
||||
def = 10
|
||||
min = 0
|
||||
max = 72
|
||||
@@ -218,7 +218,7 @@ max = 72
|
||||
ifdef = HAS_TRUETYPE_FONT
|
||||
name = ""medium_size""
|
||||
type = SLE_UINT
|
||||
var = _freetype.medium.size
|
||||
var = _fcsettings.medium.size
|
||||
def = 12
|
||||
min = 0
|
||||
max = 72
|
||||
@@ -227,7 +227,7 @@ max = 72
|
||||
ifdef = HAS_TRUETYPE_FONT
|
||||
name = ""large_size""
|
||||
type = SLE_UINT
|
||||
var = _freetype.large.size
|
||||
var = _fcsettings.large.size
|
||||
def = 16
|
||||
min = 0
|
||||
max = 72
|
||||
@@ -236,7 +236,7 @@ max = 72
|
||||
ifdef = HAS_TRUETYPE_FONT
|
||||
name = ""mono_size""
|
||||
type = SLE_UINT
|
||||
var = _freetype.mono.size
|
||||
var = _fcsettings.mono.size
|
||||
def = 12
|
||||
min = 0
|
||||
max = 72
|
||||
@@ -244,25 +244,25 @@ max = 72
|
||||
[SDTG_BOOL]
|
||||
ifdef = HAS_TRUETYPE_FONT
|
||||
name = ""small_aa""
|
||||
var = _freetype.small.aa
|
||||
var = _fcsettings.small.aa
|
||||
def = true
|
||||
|
||||
[SDTG_BOOL]
|
||||
ifdef = HAS_TRUETYPE_FONT
|
||||
name = ""medium_aa""
|
||||
var = _freetype.medium.aa
|
||||
var = _fcsettings.medium.aa
|
||||
def = true
|
||||
|
||||
[SDTG_BOOL]
|
||||
ifdef = HAS_TRUETYPE_FONT
|
||||
name = ""large_aa""
|
||||
var = _freetype.large.aa
|
||||
var = _fcsettings.large.aa
|
||||
def = true
|
||||
|
||||
[SDTG_BOOL]
|
||||
ifdef = HAS_TRUETYPE_FONT
|
||||
name = ""mono_aa""
|
||||
var = _freetype.mono.aa
|
||||
var = _fcsettings.mono.aa
|
||||
def = true
|
||||
|
||||
[SDTG_VAR]
|
||||
@@ -343,21 +343,12 @@ max = UINT32_MAX
|
||||
cat = SC_EXPERT
|
||||
|
||||
[SDTG_VAR]
|
||||
name = ""gui_zoom""
|
||||
type = SLE_INT8
|
||||
var = _gui_zoom_cfg
|
||||
def = ZOOM_LVL_CFG_AUTO
|
||||
min = ZOOM_LVL_CFG_AUTO
|
||||
max = ZOOM_LVL_OUT_4X
|
||||
cat = SC_BASIC
|
||||
|
||||
[SDTG_VAR]
|
||||
name = ""font_zoom""
|
||||
type = SLE_INT8
|
||||
var = _font_zoom_cfg
|
||||
def = ZOOM_LVL_CFG_AUTO
|
||||
min = ZOOM_LVL_CFG_AUTO
|
||||
max = ZOOM_LVL_OUT_4X
|
||||
name = ""gui_scale""
|
||||
type = SLE_INT32
|
||||
var = _gui_scale_cfg
|
||||
def = -1
|
||||
min = -1
|
||||
max = MAX_INTERFACE_SCALE
|
||||
cat = SC_BASIC
|
||||
|
||||
[SDTG_BOOL]
|
||||
|
||||
@@ -67,6 +67,17 @@ str = STR_CONFIG_SETTING_NEWS_ACCIDENTS_DISASTERS
|
||||
strhelp = STR_CONFIG_SETTING_NEWS_ACCIDENTS_DISASTERS_HELPTEXT
|
||||
strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
|
||||
|
||||
[SDTC_OMANY]
|
||||
var = news_display.accident_other
|
||||
type = SLE_UINT8
|
||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
|
||||
def = 2
|
||||
max = 2
|
||||
full = _news_display
|
||||
str = STR_CONFIG_SETTING_NEWS_ACCIDENT_OTHER
|
||||
strhelp = STR_CONFIG_SETTING_NEWS_ACCIDENT_OTHER_HELPTEXT
|
||||
strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
|
||||
|
||||
[SDTC_OMANY]
|
||||
var = news_display.company_info
|
||||
type = SLE_UINT8
|
||||
|
||||
@@ -334,7 +334,7 @@ cat = SC_EXPERT
|
||||
[SDT_BOOL]
|
||||
var = pf.yapf.rail_firstred_twoway_eol
|
||||
from = SLV_28
|
||||
def = false
|
||||
def = true
|
||||
cat = SC_EXPERT
|
||||
|
||||
[SDT_VAR]
|
||||
|
||||
@@ -65,7 +65,7 @@ full = _climates
|
||||
load = ConvertLandscape
|
||||
str = STR_CONFIG_SETTING_LANDSCAPE
|
||||
strhelp = STR_CONFIG_SETTING_LANDSCAPE_HELPTEXT
|
||||
strval = STR_CHEAT_SWITCH_CLIMATE_TEMPERATE_LANDSCAPE
|
||||
strval = STR_CLIMATE_TEMPERATE_LANDSCAPE
|
||||
cat = SC_BASIC
|
||||
|
||||
[SDT_VAR]
|
||||
@@ -415,6 +415,24 @@ max = 1 << 15
|
||||
interval = 1
|
||||
cat = SC_EXPERT
|
||||
|
||||
[SDT_VAR]
|
||||
var = construction.build_object_per_64k_frames
|
||||
type = SLE_UINT32
|
||||
def = 32 << 16
|
||||
min = 0
|
||||
max = 1 << 30
|
||||
interval = 1
|
||||
cat = SC_EXPERT
|
||||
|
||||
[SDT_VAR]
|
||||
var = construction.build_object_frame_burst
|
||||
type = SLE_UINT16
|
||||
def = 2048
|
||||
min = 0
|
||||
max = 1 << 15
|
||||
interval = 1
|
||||
cat = SC_EXPERT
|
||||
|
||||
[SDT_BOOL]
|
||||
var = construction.autoslope
|
||||
from = SLV_75
|
||||
|
||||
+11
-13
@@ -290,15 +290,13 @@ static const SpriteID SPR_TRAMWAY_DEPOT_NO_TRACK = SPR_TRAMWAY_BASE + 113;
|
||||
static const uint16 TRAMWAY_SPRITE_COUNT = 119;
|
||||
|
||||
/** One way road sprites */
|
||||
static const SpriteID SPR_ONEWAY_BASE = SPR_TRAMWAY_BASE + TRAMWAY_SPRITE_COUNT;
|
||||
static const uint16 ONEWAY_SPRITE_COUNT = 6;
|
||||
|
||||
/** Flags sprites (in same order as enum NetworkLanguage) */
|
||||
static const SpriteID SPR_FLAGS_BASE = SPR_ONEWAY_BASE + ONEWAY_SPRITE_COUNT;
|
||||
static const uint16 FLAGS_SPRITE_COUNT = 36;
|
||||
static const SpriteID SPR_ONEWAY_BASE = SPR_TRAMWAY_BASE + TRAMWAY_SPRITE_COUNT;
|
||||
static const SpriteID SPR_ONEWAY_SLOPE_N_OFFSET = 6;
|
||||
static const SpriteID SPR_ONEWAY_SLOPE_S_OFFSET = 12;
|
||||
static const uint16 ONEWAY_SPRITE_COUNT = 18;
|
||||
|
||||
/** Tunnel sprites with grass only for custom railtype tunnel. */
|
||||
static const SpriteID SPR_RAILTYPE_TUNNEL_BASE = SPR_FLAGS_BASE + FLAGS_SPRITE_COUNT;
|
||||
static const SpriteID SPR_RAILTYPE_TUNNEL_BASE = SPR_ONEWAY_BASE + ONEWAY_SPRITE_COUNT;
|
||||
static const uint16 RAILTYPE_TUNNEL_BASE_COUNT = 16;
|
||||
|
||||
/* Not really a sprite, but an empty bounding box. Used to construct bounding boxes that help sorting the sprites, but do not have a sprite associated. */
|
||||
@@ -1546,18 +1544,18 @@ enum Modifiers {
|
||||
* @see SpriteSetup
|
||||
*/
|
||||
enum SpriteMasks {
|
||||
MAX_SPRITES = 1 << SPRITE_WIDTH, ///< Maximum number of sprites that can be loaded at a given time
|
||||
MAX_SPRITES = 1U << SPRITE_WIDTH, ///< Maximum number of sprites that can be loaded at a given time
|
||||
SPRITE_MASK = MAX_SPRITES - 1, ///< The mask to for the main sprite
|
||||
|
||||
MAX_PALETTES = 1 << PALETTE_WIDTH,
|
||||
MAX_PALETTES = 1U << PALETTE_WIDTH,
|
||||
PALETTE_MASK = MAX_PALETTES - 1, ///< The mask for the auxiliary sprite (the one that takes care of recolouring)
|
||||
};
|
||||
|
||||
static_assert( (1 << TRANSPARENT_BIT & SPRITE_MASK) == 0 );
|
||||
static_assert( (1 << RECOLOUR_BIT & SPRITE_MASK) == 0 );
|
||||
static_assert( (1U << TRANSPARENT_BIT & SPRITE_MASK) == 0 );
|
||||
static_assert( (1U << RECOLOUR_BIT & SPRITE_MASK) == 0 );
|
||||
static_assert( TRANSPARENT_BIT != RECOLOUR_BIT );
|
||||
static_assert( (1 << TRANSPARENT_BIT & PALETTE_MASK) == 0);
|
||||
static_assert( (1 << RECOLOUR_BIT & PALETTE_MASK) == 0 );
|
||||
static_assert( (1U << TRANSPARENT_BIT & PALETTE_MASK) == 0 );
|
||||
static_assert( (1U << RECOLOUR_BIT & PALETTE_MASK) == 0 );
|
||||
|
||||
|
||||
static const PaletteID PAL_NONE = 0;
|
||||
|
||||
@@ -74,10 +74,11 @@ static const CmdStruct _cmd_structs[] = {
|
||||
{"STATION_FEATURES", EmitSingleChar, SCC_STATION_FEATURES, 1, -1, C_NONE}, // station features string, icons of the features
|
||||
{"INDUSTRY", EmitSingleChar, SCC_INDUSTRY_NAME, 1, -1, C_CASE | C_GENDER}, // industry, takes an industry #, can have cases
|
||||
{"CARGO_LONG", EmitSingleChar, SCC_CARGO_LONG, 2, 1, C_NONE | C_GENDER},
|
||||
{"CARGO_SHORT", EmitSingleChar, SCC_CARGO_SHORT, 2, 1, C_NONE}, // short cargo description, only ### tons, or ### litres
|
||||
{"CARGO_SHORT", EmitSingleChar, SCC_CARGO_SHORT, 2, 1, C_NONE | C_GENDER}, // short cargo description, only ### tons, or ### litres
|
||||
{"CARGO_TINY", EmitSingleChar, SCC_CARGO_TINY, 2, 1, C_NONE}, // tiny cargo description with only the amount, not a specifier for the amount or the actual cargo name
|
||||
{"CARGO_LIST", EmitSingleChar, SCC_CARGO_LIST, 1, -1, C_CASE},
|
||||
{"POWER", EmitSingleChar, SCC_POWER, 1, 0, C_NONE},
|
||||
{"POWER_TO_WEIGHT", EmitSingleChar, SCC_POWER_TO_WEIGHT, 1, 0, C_NONE},
|
||||
{"VOLUME_LONG", EmitSingleChar, SCC_VOLUME_LONG, 1, 0, C_NONE},
|
||||
{"VOLUME_SHORT", EmitSingleChar, SCC_VOLUME_SHORT, 1, 0, C_NONE},
|
||||
{"WEIGHT_LONG", EmitSingleChar, SCC_WEIGHT_LONG, 1, 0, C_NONE},
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
/** @file train_cmd.h Sprites to use for trains. */
|
||||
/** @file train_sprites.h Sprites to use for trains. */
|
||||
|
||||
static const SpriteID _engine_sprite_base[] = {
|
||||
0x0B59, 0x0B61, 0x0B69, 0x0BE1, 0x0B71, 0x0B75, 0x0B7D, 0x0B7D,
|
||||
+1
-1
@@ -17,7 +17,7 @@ static const byte CLRA = 0; ///< Identifier to clear all glyphs at this codepoin
|
||||
/* Default unicode mapping table for sprite based glyphs.
|
||||
* This table allows us use unicode characters even though the glyphs don't
|
||||
* exist, or are in the wrong place, in the standard sprite fonts.
|
||||
* This is not used for FreeType rendering */
|
||||
* This is not used for TrueType rendering */
|
||||
|
||||
static const DefaultUnicodeMapping _default_unicode_map[] = {
|
||||
{ 0x00A0, 0x20 }, // Non-breaking space / Up arrow
|
||||
|
||||
Reference in New Issue
Block a user