1
0
Fork 0

(svn r1307) -Fix/feature: rewrote the townname generation code. Code is much more

readable now. 'American' is replaces by 'Additional English' (Jango)
release/0.4.5
truelight 2004-12-31 14:43:47 +00:00
parent 6c1e2989b1
commit d76ecbba7c
4 changed files with 2354 additions and 2128 deletions

View File

@ -852,10 +852,10 @@ STR_0335_6 :{BLACK}6
STR_0336_7 :{BLACK}7
############ start of townname region
STR_TOWNNAME_ENGLISH :English
STR_TOWNNAME_ORIGINAL_ENGLISH :English (Original)
STR_TOWNNAME_FRENCH :French
STR_TOWNNAME_GERMAN :German
STR_TOWNNAME_AMERICAN :American
STR_TOWNNAME_ADDITIONAL_ENGLISH :English (Additional)
STR_TOWNNAME_LATIN_AMERICAN :Latin-American
STR_TOWNNAME_SILLY :Silly
STR_TOWNNAME_SWEDISH :Swedish

2310
namegen.c

File diff suppressed because it is too large Load Diff

View File

@ -76,7 +76,7 @@ static void GameOptionsWndProc(Window *w, WindowEvent *e)
SetDParam(1, _currency_string_list[_opt_mod_ptr->currency]);
SetDParam(2, _opt_mod_ptr->kilometers + STR_0139_IMPERIAL_MILES);
SetDParam(3, STR_02E9_DRIVE_ON_LEFT + _opt_mod_ptr->road_side);
SetDParam(4, STR_TOWNNAME_ENGLISH + _opt_mod_ptr->town_name);
SetDParam(4, STR_TOWNNAME_ORIGINAL_ENGLISH + _opt_mod_ptr->town_name);
SetDParam(5, _autosave_dropdown[_opt_mod_ptr->autosave]);
SetDParam(6, SPECSTR_LANGUAGE_START + _dynlang.curr);
i = GetCurRes();
@ -103,7 +103,7 @@ static void GameOptionsWndProc(Window *w, WindowEvent *e)
}
case 14: {
int i = _opt_mod_ptr->town_name;
ShowDropDownMenu(w, BuildDynamicDropdown(STR_TOWNNAME_ENGLISH, SPECSTR_TOWNNAME_LAST - SPECSTR_TOWNNAME_START + 1), i, e->click.widget, (_game_mode == GM_MENU) ? 0 : (-1) ^ (1 << i));
ShowDropDownMenu(w, BuildDynamicDropdown(STR_TOWNNAME_ORIGINAL_ENGLISH, SPECSTR_TOWNNAME_LAST - SPECSTR_TOWNNAME_START + 1), i, e->click.widget, (_game_mode == GM_MENU) ? 0 : (-1) ^ (1 << i));
return;
}
case 17:

1978
table/namegen.h 100644

File diff suppressed because it is too large Load Diff