summaryrefslogtreecommitdiff
path: root/src/statusbar_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-04-03 12:39:52 +0000
committeralberth <alberth@openttd.org>2009-04-03 12:39:52 +0000
commitab06ed241f4c1a91c0888ced2249fb42e2174ebc (patch)
treeea68e486cbb0c50329fa3e779078e4696c321b78 /src/statusbar_gui.cpp
parent27a13ec67dbd0c104d0a7c04b31da5c134458d98 (diff)
downloadopenttd-ab06ed241f4c1a91c0888ced2249fb42e2174ebc.tar.xz
(svn r15929) -Codechange: Added nested widgets for statusbar.
Diffstat (limited to 'src/statusbar_gui.cpp')
-rw-r--r--src/statusbar_gui.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp
index c4f5773db..1d4bb84f7 100644
--- a/src/statusbar_gui.cpp
+++ b/src/statusbar_gui.cpp
@@ -182,11 +182,19 @@ static const Widget _main_status_widgets[] = {
{ WIDGETS_END},
};
+static const NWidgetPart _nested_main_status_widgets[] = {
+ NWidget(NWID_HORIZONTAL),
+ NWidget(WWT_PANEL, COLOUR_GREY, SBW_LEFT), SetMinimalSize(140, 12), EndContainer(),
+ NWidget(WWT_PUSHBTN, COLOUR_GREY, SBW_MIDDLE), SetMinimalSize(40, 12), SetDataTip(0x0, STR_02B7_SHOW_LAST_MESSAGE_OR_NEWS), SetResize(1, 0),
+ NWidget(WWT_PUSHBTN, COLOUR_GREY, SBW_RIGHT), SetMinimalSize(140, 12),
+ EndContainer(),
+};
+
static WindowDesc _main_status_desc(
WDP_CENTER, 0, 320, 12, 640, 12,
WC_STATUS_BAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_NO_FOCUS,
- _main_status_widgets
+ _main_status_widgets, _nested_main_status_widgets, lengthof(_nested_main_status_widgets)
);
/**