(svn r24789) -Add: Separate setting to control the default settings of newly added scripts and random AIs.

This commit is contained in:
frosch
2012-12-05 19:36:04 +00:00
parent 79968fb667
commit 9ef1c5f4c3
9 changed files with 33 additions and 3 deletions

View File

@@ -23,6 +23,7 @@ static const char *_savegame_date = "long|short|iso";
static const char *_server_langs = "ANY|ENGLISH|GERMAN|FRENCH|BRAZILIAN|BULGARIAN|CHINESE|CZECH|DANISH|DUTCH|ESPERANTO|FINNISH|HUNGARIAN|ICELANDIC|ITALIAN|JAPANESE|KOREAN|LITHUANIAN|NORWEGIAN|POLISH|PORTUGUESE|ROMANIAN|RUSSIAN|SLOVAK|SLOVENIAN|SPANISH|SWEDISH|TURKISH|UKRAINIAN|AFRIKAANS|CROATIAN|CATALAN|ESTONIAN|GALICIAN|GREEK|LATVIAN";
#endif /* ENABLE_NETWORK */
static const char *_osk_activation = "disabled|double|single|immediately";
static const char *_settings_profiles = "easy|medium|hard";
static const SettingDesc _gameopt_settings[] = {
/* In version 4 a new difficulty setting has been added to the difficulty settings,

View File

@@ -1298,6 +1298,21 @@ cat = SC_EXPERT
length = 1
to = 106
[SDT_OMANY]
base = GameSettings
var = script.settings_profile
type = SLE_UINT8
from = 178
guiflags = SGF_MULTISTRING
def = SP_EASY
min = SP_EASY
max = SP_HARD
full = _settings_profiles
str = STR_CONFIG_SETTING_AI_PROFILE
strhelp = STR_CONFIG_SETTING_AI_PROFILE_HELPTEXT
strval = STR_CONFIG_SETTING_AI_PROFILE_EASY
cat = SC_BASIC
[SDT_BOOL]
base = GameSettings
var = ai.ai_in_multiplayer