summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-12-30 17:58:19 +0000
committeralberth <alberth@openttd.org>2009-12-30 17:58:19 +0000
commit4801b17837a1f8e950c6da7544c1bd69f942b606 (patch)
tree4840e73c6145dc41cae081ff0abe47092c266219 /src
parent0a7fc9e4ea157fa429f67839d1aa2567d5ecd4ce (diff)
downloadopenttd-4801b17837a1f8e950c6da7544c1bd69f942b606.tar.xz
(svn r18666) -Codechange: Add tooltips to enable/disable all buttons in smallmap.
Diffstat (limited to 'src')
-rw-r--r--src/lang/english.txt2
-rw-r--r--src/smallmap_gui.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lang/english.txt b/src/lang/english.txt
index 6761e24db..3ded4a074 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -694,6 +694,8 @@ STR_SMALLMAP_TOWN :{TINYFONT}{WHIT
STR_SMALLMAP_DISABLE_ALL :{BLACK}Disable all
STR_SMALLMAP_ENABLE_ALL :{BLACK}Enable all
STR_SMALLMAP_SHOW_HEIGHT :{BLACK}Show height
+STR_SMALLMAP_TOOLTIP_DISABLE_ALL :{BLACK}Display no industries on the map
+STR_SMALLMAP_TOOLTIP_ENABLE_ALL :{BLACK}Display all industries on the map
STR_SMALLMAP_TOOLTIP_SHOW_HEIGHT :{BLACK}Toggle display of heightmap
# Status bar messages
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index e51ad853a..0e498da44 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -1257,8 +1257,8 @@ static const NWidgetPart _nested_smallmap_widgets[] = {
NWidget(NWID_HORIZONTAL),
NWidget(NWID_SELECTION, INVALID_COLOUR, SM_WIDGET_SELECTINDUSTRIES),
NWidget(NWID_HORIZONTAL, NC_EQUALSIZE),
- NWidget(WWT_TEXTBTN, COLOUR_BROWN, SM_WIDGET_ENABLEINDUSTRIES), SetDataTip(STR_SMALLMAP_ENABLE_ALL, STR_NULL),
- NWidget(WWT_TEXTBTN, COLOUR_BROWN, SM_WIDGET_DISABLEINDUSTRIES), SetDataTip(STR_SMALLMAP_DISABLE_ALL, STR_NULL),
+ NWidget(WWT_TEXTBTN, COLOUR_BROWN, SM_WIDGET_ENABLEINDUSTRIES), SetDataTip(STR_SMALLMAP_ENABLE_ALL, STR_SMALLMAP_TOOLTIP_ENABLE_ALL),
+ NWidget(WWT_TEXTBTN, COLOUR_BROWN, SM_WIDGET_DISABLEINDUSTRIES), SetDataTip(STR_SMALLMAP_DISABLE_ALL, STR_SMALLMAP_TOOLTIP_DISABLE_ALL),
NWidget(WWT_TEXTBTN, COLOUR_BROWN, SM_WIDGET_SHOW_HEIGHT), SetDataTip(STR_SMALLMAP_SHOW_HEIGHT, STR_SMALLMAP_TOOLTIP_SHOW_HEIGHT),
EndContainer(),
NWidget(NWID_SPACER), SetFill(1, 1),