diff options
author | belugas <belugas@openttd.org> | 2006-08-25 00:41:10 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-08-25 00:41:10 +0000 |
commit | c9b32982fcd6b43217fe1299f4b5475414e78635 (patch) | |
tree | caad83c6db9639e15830a8ab332ae70450b40930 /settings_gui.c | |
parent | 0189b8994d00adf3b09e0ccb594a06b84569972d (diff) | |
download | openttd-c9b32982fcd6b43217fe1299f4b5475414e78635.tar.xz |
(svn r6108) -NewGRF Feature: Implement currencies replacment via grf file.
All properties can now be modified i.e:
Introduction date for euro conversion
Currency name, decimal separator, currency symbol (before or after amount)
and the rate compared to the base currency, the british pound
Diffstat (limited to 'settings_gui.c')
-rw-r--r-- | settings_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings_gui.c b/settings_gui.c index 350b7aa7f..b98ad4e35 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -97,7 +97,7 @@ static void GameOptionsWndProc(Window *w, WindowEvent *e) StringID str = STR_02BE_DEFAULT; w->disabled_state = (_vehicle_design_names & 1) ? (++str, 0) : (1 << 21); SetDParam(0, str); - SetDParam(1, _currency_string_list[_opt_ptr->currency]); + SetDParam(1, _currency_specs[_opt_ptr->currency].name); SetDParam(2, STR_UNITS_IMPERIAL + _opt_ptr->units); SetDParam(3, STR_02E9_DRIVE_ON_LEFT + _opt_ptr->road_side); SetDParam(4, STR_TOWNNAME_ORIGINAL_ENGLISH + _opt_ptr->town_name); @@ -115,7 +115,7 @@ static void GameOptionsWndProc(Window *w, WindowEvent *e) case WE_CLICK: switch (e->click.widget) { case 4: case 5: /* Setup currencies dropdown */ - ShowDropDownMenu(w, _currency_string_list, _opt_ptr->currency, 5, _game_mode == GM_MENU ? 0 : ~GetMaskOfAllowedCurrencies(), 0); + ShowDropDownMenu(w, BuildCurrencyDropdown(), _opt_ptr->currency, 5, _game_mode == GM_MENU ? 0 : ~GetMaskOfAllowedCurrencies(), 0);; return; case 7: case 8: /* Setup distance unit dropdown */ ShowDropDownMenu(w, _units_dropdown, _opt_ptr->units, 8, 0, 0); |