summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorMatt Kimber <mattkimber@users.noreply.github.com>2021-03-13 09:00:53 +0000
committerGitHub <noreply@github.com>2021-03-13 10:00:53 +0100
commitbcb3313e134e0e8cf12366ec9d1340e9986ccc57 (patch)
tree39141bec1ab454c06deab1f4227f401f864fe970 /src/table
parente708fb38da7a3635c7cc15dd1cc516ea1d2d5871 (diff)
downloadopenttd-bcb3313e134e0e8cf12366ec9d1340e9986ccc57.tar.xz
Feature: allow setting maximum zoom level at which sprites are drawn (#8604)
Diffstat (limited to 'src/table')
-rw-r--r--src/table/settings.ini14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/table/settings.ini b/src/table/settings.ini
index b48ac6cd6..6e19e3ade 100644
--- a/src/table/settings.ini
+++ b/src/table/settings.ini
@@ -39,6 +39,7 @@ static bool RedrawTownAuthority(int32 p1);
static bool InvalidateCompanyInfrastructureWindow(int32 p1);
static bool InvalidateCompanyWindow(int32 p1);
static bool ZoomMinMaxChanged(int32 p1);
+static bool SpriteZoomMinChanged(int32 p1);
static bool MaxVehiclesChanged(int32 p1);
static bool InvalidateShipPathCache(int32 p1);
@@ -2830,6 +2831,19 @@ strval = STR_CONFIG_SETTING_ZOOM_LVL_OUT_2X
proc = ZoomMinMaxChanged
startup = true
+[SDTC_VAR]
+var = gui.sprite_zoom_min
+type = SLE_UINT8
+flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
+guiflags = SGF_MULTISTRING
+def = ZOOM_LVL_MIN
+min = ZOOM_LVL_MIN
+max = ZOOM_LVL_OUT_4X
+str = STR_CONFIG_SETTING_SPRITE_ZOOM_MIN
+strhelp = STR_CONFIG_SETTING_SPRITE_ZOOM_MIN_HELPTEXT
+strval = STR_CONFIG_SETTING_SPRITE_ZOOM_LVL_MIN
+proc = SpriteZoomMinChanged
+
[SDTC_BOOL]
var = gui.population_in_label
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC