summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-12-21 16:28:50 +0000
committeralberth <alberth@openttd.org>2009-12-21 16:28:50 +0000
commit1d7a75032fcc468a137e9bf394602fa109d26a06 (patch)
tree554c83de9cce1a730620948e64ceb7ef205d2173 /src
parent91872aca4836c4e07808548b5a6d370a06734d58 (diff)
downloadopenttd-1d7a75032fcc468a137e9bf394602fa109d26a06.tar.xz
(svn r18589) -Codechange: Add tooltip to some network windows, remove old comment.
Diffstat (limited to 'src')
-rw-r--r--src/network/network_gui.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 514f38521..546859fb3 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -916,15 +916,11 @@ static NWidgetBase *MakeResizableHeader(int *biggest_index)
return new NWidgetServerListHeader();
}
-/* Generates incorrect display_flags for widgets NGWW_NAME, and incorrect
- * display_flags and/or left/right side for the overlapping widgets
- * NGWW_CLIENTS through NGWW_YEARS.
- */
static const NWidgetPart _nested_network_game_widgets[] = {
/* TOP */
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_LIGHT_BLUE),
- NWidget(WWT_CAPTION, COLOUR_LIGHT_BLUE), SetDataTip(STR_NETWORK_SERVER_LIST_CAPTION, STR_NULL), // XXX Add default caption tooltip!
+ NWidget(WWT_CAPTION, COLOUR_LIGHT_BLUE), SetDataTip(STR_NETWORK_SERVER_LIST_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
EndContainer(),
NWidget(WWT_PANEL, COLOUR_LIGHT_BLUE, NGWW_MAIN),
NWidget(NWID_VERTICAL), SetPIP(10, 7, 0),
@@ -1336,7 +1332,7 @@ struct NetworkStartServerWindow : public QueryStringBaseWindow {
static const NWidgetPart _nested_network_start_server_window_widgets[] = {
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_LIGHT_BLUE),
- NWidget(WWT_CAPTION, COLOUR_LIGHT_BLUE), SetDataTip(STR_NETWORK_START_SERVER_CAPTION, STR_NULL),
+ NWidget(WWT_CAPTION, COLOUR_LIGHT_BLUE), SetDataTip(STR_NETWORK_START_SERVER_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
EndContainer(),
NWidget(WWT_PANEL, COLOUR_LIGHT_BLUE, NSSW_BACKGROUND),
NWidget(NWID_HORIZONTAL), SetPIP(10, 8, 10),
@@ -1680,7 +1676,7 @@ struct NetworkLobbyWindow : public Window {
static const NWidgetPart _nested_network_lobby_window_widgets[] = {
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_LIGHT_BLUE),
- NWidget(WWT_CAPTION, COLOUR_LIGHT_BLUE), SetDataTip(STR_NETWORK_GAME_LOBBY_CAPTION, STR_NULL),
+ NWidget(WWT_CAPTION, COLOUR_LIGHT_BLUE), SetDataTip(STR_NETWORK_GAME_LOBBY_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
EndContainer(),
NWidget(WWT_PANEL, COLOUR_LIGHT_BLUE, NLWW_BACKGROUND),
NWidget(WWT_TEXT, COLOUR_LIGHT_BLUE, NLWW_TEXT), SetDataTip(STR_NETWORK_GAME_LOBBY_PREPARE_TO_JOIN, STR_NULL), SetResize(1, 0), SetPadding(10, 10, 0, 10),