From bfd09004fe040c16b679637f0c2b0f6354438d9b Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 3 May 2011 20:30:26 +0000 Subject: (svn r22417) -Add: an advanced setting to specify the default palette to use for NewGRFs without action 14 palette information; this makes the default choice independent from the used base graphics and '-i' option. --- src/table/settings.ini | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/table') diff --git a/src/table/settings.ini b/src/table/settings.ini index b5ea7293b..c5fe20ee4 100644 --- a/src/table/settings.ini +++ b/src/table/settings.ini @@ -38,6 +38,7 @@ static bool InvalidateCompanyLiveryWindow(int32 p1); static bool InvalidateNewGRFChangeWindows(int32 p1); static bool InvalidateIndustryViewWindow(int32 p1); static bool RedrawTownAuthority(int32 p1); +extern bool UpdateNewGRFConfigPalette(int32 p1); #ifdef ENABLE_NETWORK static bool UpdateClientName(int32 p1); @@ -2395,6 +2396,18 @@ var = gui.newgrf_show_old_versions flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC def = false +[SDTC_VAR] +var = gui.newgrf_default_palette +type = SLE_UINT8 +flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC +guiflags = SGF_MULTISTRING +def = 1 +min = 0 +max = 1 +str = STR_CONFIG_SETTING_NEWGRF_DEFAULT_PALETTE +strval = STR_CONFIG_SETTING_NEWGRF_DEFAULT_PALETTE_DOS +proc = UpdateNewGRFConfigPalette + [SDTC_VAR] var = gui.console_backlog_timeout type = SLE_UINT16 -- cgit v1.2.3-54-g00ecf