From 63203c23956364cb78a9bbbe25516ca06eab5757 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 12 Mar 2019 18:44:40 +0000 Subject: [PATCH] Add GUI/client setting to save zoning overlay state --- src/settings.cpp | 1 + src/table/misc_settings.ini | 18 ++++++++++++++++++ src/zoning.h | 2 ++ 3 files changed, 21 insertions(+) diff --git a/src/settings.cpp b/src/settings.cpp index 69930b49b0..1f3657602d 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -66,6 +66,7 @@ #include "strings_func.h" #include "string_func.h" #include "debug.h" +#include "zoning.h" #include "void_map.h" #include "station_base.h" diff --git a/src/table/misc_settings.ini b/src/table/misc_settings.ini index 9425ee977a..769943559a 100644 --- a/src/table/misc_settings.ini +++ b/src/table/misc_settings.ini @@ -319,5 +319,23 @@ min = ZOOM_LVL_MIN max = ZOOM_LVL_OUT_4X cat = SC_BASIC +[SDTG_VAR] +name = ""zoning_overlay_inner"" +type = SLE_UINT8 +var = _zoning.inner +def = 0 +min = 0 +max = ZEM_END +cat = SC_BASIC + +[SDTG_VAR] +name = ""zoning_overlay_outer"" +type = SLE_UINT8 +var = _zoning.outer +def = 0 +min = 0 +max = ZEM_END +cat = SC_BASIC + [SDTG_END] diff --git a/src/zoning.h b/src/zoning.h index cf060e1dfa..63ee2651f1 100644 --- a/src/zoning.h +++ b/src/zoning.h @@ -29,6 +29,8 @@ enum ZoningEvaluationMode { ZEM_TRACERESTRICT, ///< Check for restricted signals ZEM_2x2_GRID, ///< Show 2x2 town road grid ZEM_3x3_GRID, ///< Show 3x3 town road grid + + ZEM_END, ///< End marker }; /**