(svn r23169) -Feature: [NoAI] AICONFIG_AI_DEVELOPER flags to hide AI settings unless gui.ai_developer_tools is enabled (Zuu)

This commit is contained in:
yexo
2011-11-08 21:48:00 +00:00
parent 0566a6cfda
commit 41e9da2420
6 changed files with 70 additions and 31 deletions

View File

@@ -37,6 +37,7 @@ static bool InvalidateVehTimetableWindow(int32 p1);
static bool InvalidateCompanyLiveryWindow(int32 p1);
static bool InvalidateNewGRFChangeWindows(int32 p1);
static bool InvalidateIndustryViewWindow(int32 p1);
static bool InvalidateAISettingsWindow(int32 p1);
static bool RedrawTownAuthority(int32 p1);
extern bool UpdateNewGRFConfigPalette(int32 p1);
@@ -2422,6 +2423,7 @@ proc = InvalidateNewGRFChangeWindows
var = gui.ai_developer_tools
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
def = false
proc = InvalidateAISettingsWindow
[SDTC_BOOL]
var = gui.scenario_developer