(svn r23314) -Add: Add settings to restrict viewport zoom levels.
This commit is contained in:
@@ -40,6 +40,7 @@ static bool InvalidateIndustryViewWindow(int32 p1);
|
||||
static bool InvalidateAISettingsWindow(int32 p1);
|
||||
static bool RedrawTownAuthority(int32 p1);
|
||||
extern bool UpdateNewGRFConfigPalette(int32 p1);
|
||||
static bool ZoomMinMaxChanged(int32 p1);
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
static bool UpdateClientName(int32 p1);
|
||||
@@ -2071,6 +2072,30 @@ max = 255
|
||||
interval = 1
|
||||
str = STR_CONFIG_SETTING_SOFT_LIMIT
|
||||
|
||||
[SDTC_VAR]
|
||||
var = gui.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_MIN
|
||||
str = STR_CONFIG_SETTING_ZOOM_MIN
|
||||
strval = STR_CONFIG_SETTING_ZOOM_LVL_MIN
|
||||
proc = ZoomMinMaxChanged
|
||||
|
||||
[SDTC_VAR]
|
||||
var = gui.zoom_max
|
||||
type = SLE_UINT8
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
guiflags = SGF_MULTISTRING
|
||||
def = ZOOM_LVL_MAX
|
||||
min = ZOOM_LVL_OUT_2X
|
||||
max = ZOOM_LVL_MAX
|
||||
str = STR_CONFIG_SETTING_ZOOM_MAX
|
||||
strval = STR_CONFIG_SETTING_ZOOM_LVL_OUT_2X
|
||||
proc = ZoomMinMaxChanged
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.population_in_label
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
|
Reference in New Issue
Block a user