diff options
author | dominik <dominik@openttd.org> | 2004-11-21 22:44:13 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2004-11-21 22:44:13 +0000 |
commit | 4e41cf9e2bf99fb544562840d098d112d20220b1 (patch) | |
tree | 372b7858cb2ddd4efc32eb7c98fe7ef0fa53afb2 /main_gui.c | |
parent | 485102814f209ee46a5a575f19af8931dd0bf094 (diff) | |
download | openttd-4e41cf9e2bf99fb544562840d098d112d20220b1.tar.xz |
(svn r745) Added newgrf GUI (in options menu)\nThe interface currently only displays the installed grf sets, you can't (de)activate them through the gui yet
Diffstat (limited to 'main_gui.c')
-rw-r--r-- | main_gui.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/main_gui.c b/main_gui.c index dbacc2d67..a97f2dbb7 100644 --- a/main_gui.c +++ b/main_gui.c @@ -110,13 +110,15 @@ static void MenuClickSettings(int index) case 0: ShowGameOptions(); return; case 1: ShowGameDifficulty(); return; case 2: ShowPatchesSelection(); return; - case 4: _display_opt ^= DO_SHOW_TOWN_NAMES; MarkWholeScreenDirty(); return; - case 5: _display_opt ^= DO_SHOW_STATION_NAMES; MarkWholeScreenDirty(); return; - case 6: _display_opt ^= DO_SHOW_SIGNS; MarkWholeScreenDirty(); return; - case 7: _display_opt ^= DO_WAYPOINTS; MarkWholeScreenDirty(); return; - case 8: _display_opt ^= DO_FULL_ANIMATION; MarkWholeScreenDirty(); return; - case 9: _display_opt ^= DO_FULL_DETAIL; MarkWholeScreenDirty(); return; - case 10: _display_opt ^= DO_TRANS_BUILDINGS; MarkWholeScreenDirty(); return; + case 3: ShowNewgrf(); return; + + case 5: _display_opt ^= DO_SHOW_TOWN_NAMES; MarkWholeScreenDirty(); return; + case 6: _display_opt ^= DO_SHOW_STATION_NAMES; MarkWholeScreenDirty(); return; + case 7: _display_opt ^= DO_SHOW_SIGNS; MarkWholeScreenDirty(); return; + case 8: _display_opt ^= DO_WAYPOINTS; MarkWholeScreenDirty(); return; + case 9: _display_opt ^= DO_FULL_ANIMATION; MarkWholeScreenDirty(); return; + case 10: _display_opt ^= DO_FULL_DETAIL; MarkWholeScreenDirty(); return; + case 11: _display_opt ^= DO_TRANS_BUILDINGS; MarkWholeScreenDirty(); return; } } @@ -838,16 +840,16 @@ static void ToolbarOptionsClick(Window *w) { uint16 x; - w = PopupMainToolbMenu(w, 43, 2, STR_02C3_GAME_OPTIONS, 11); + w = PopupMainToolbMenu(w, 43, 2, STR_02C3_GAME_OPTIONS, 12); x = (uint16)-1; - if (_display_opt & DO_SHOW_TOWN_NAMES) x &= ~(1<<4); - if (_display_opt & DO_SHOW_STATION_NAMES) x &= ~(1<<5); - if (_display_opt & DO_SHOW_SIGNS) x &= ~(1<<6); - if (_display_opt & DO_WAYPOINTS) x &= ~(1<<7); - if (_display_opt & DO_FULL_ANIMATION) x &= ~(1<<8); - if (_display_opt & DO_FULL_DETAIL) x &= ~(1<<9); - if (!(_display_opt & DO_TRANS_BUILDINGS)) x &= ~(1<<10); + if (_display_opt & DO_SHOW_TOWN_NAMES) x &= ~(1<<5); + if (_display_opt & DO_SHOW_STATION_NAMES) x &= ~(1<<6); + if (_display_opt & DO_SHOW_SIGNS) x &= ~(1<<7); + if (_display_opt & DO_WAYPOINTS) x &= ~(1<<8); + if (_display_opt & DO_FULL_ANIMATION) x &= ~(1<<9); + if (_display_opt & DO_FULL_DETAIL) x &= ~(1<<10); + if (!(_display_opt & DO_TRANS_BUILDINGS)) x &= ~(1<<11); WP(w,menu_d).checked_items = x; } |