diff options
author | celestar <celestar@openttd.org> | 2006-05-11 11:24:09 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-05-11 11:24:09 +0000 |
commit | c6fd0c3a46cc908a91d0aa9f4d63719120d01c7d (patch) | |
tree | b0d78f62bde5f197a4209b4decd84f5490972a40 | |
parent | 48d991b8197db61c41ac35b3b08be85344612ba5 (diff) | |
download | openttd-c6fd0c3a46cc908a91d0aa9f4d63719120d01c7d.tar.xz |
(svn r4823) -Fix: Improved tooltips for sortable station lists.
-Credit: Chrishuebsch for initial idea and implementation of station filters
-rw-r--r-- | lang/english.txt | 3 | ||||
-rw-r--r-- | station_gui.c | 9 |
2 files changed, 7 insertions, 5 deletions
diff --git a/lang/english.txt b/lang/english.txt index 3d29dbdc0..df7b98611 100644 --- a/lang/english.txt +++ b/lang/english.txt @@ -382,6 +382,9 @@ STR_SORT_BY_VALUE :Value STR_SORT_BY_FACILITY :Station type STR_SORT_BY_WAITING :Waiting cargo value STR_SORT_BY_RATING_MAX :Cargo rating +STR_NO_WAITING_CARGO :{BLACK}No cargo of any type is waiting +STR_SELECT_ALL_FACILITIES :{BLACK}Select all facilities +STR_SELECT_ALL_TYPES :{BLACK}Select all cargo types (including no waiting cargo) ############ range for months starts STR_0162_JAN :Jan diff --git a/station_gui.c b/station_gui.c index 0043fd00c..5d0f66317 100644 --- a/station_gui.c +++ b/station_gui.c @@ -489,12 +489,12 @@ static const Widget _player_stations_widgets[] = { { WWT_PANEL, RESIZE_NONE, 14, 215, 228, 14, 24, 0x0, STR_USE_CTRL_TO_SELECT_MORE}, { WWT_PANEL, RESIZE_NONE, 14, 229, 242, 14, 24, 0x0, STR_USE_CTRL_TO_SELECT_MORE}, { WWT_PANEL, RESIZE_NONE, 14, 243, 256, 14, 24, 0x0, STR_USE_CTRL_TO_SELECT_MORE}, -{ WWT_PANEL, RESIZE_NONE, 14, 257, 270, 14, 24, 0x0, STR_USE_CTRL_TO_SELECT_MORE}, -{ WWT_PANEL, RESIZE_RIGHT, 14, 285, 358, 14, 24, 0x0, STR_USE_CTRL_TO_SELECT_MORE}, +{ WWT_PANEL, RESIZE_NONE, 14, 257, 270, 14, 24, 0x0, STR_NO_WAITING_CARGO}, +{ WWT_PANEL, RESIZE_RIGHT, 14, 285, 358, 14, 24, 0x0, STR_NULL}, //26 -{ WWT_PANEL, RESIZE_NONE, 14, 70, 83, 14, 24, 0x0, STR_NULL}, -{ WWT_PANEL, RESIZE_NONE, 14, 271, 284, 14, 24, 0x0, STR_NULL}, +{ WWT_PANEL, RESIZE_NONE, 14, 70, 83, 14, 24, 0x0, STR_SELECT_ALL_FACILITIES}, +{ WWT_PANEL, RESIZE_NONE, 14, 271, 284, 14, 24, 0x0, STR_SELECT_ALL_TYPES}, //28 { WWT_TEXTBTN, RESIZE_NONE, 14, 0, 80, 25, 36, STR_SORT_BY, STR_SORT_ORDER_TIP}, @@ -523,7 +523,6 @@ void ShowPlayerStations(PlayerID player) w->vscroll.cap = 12; w->resize.step_height = 10; w->resize.height = w->height - 10 * 7; // minimum if 5 in the list - w->widget[NUM_CARGO + 12].tooltips = STR_01A9_NONE; } } |