From 6567a29e182d6de528bbfc57258ec38c03a0385f Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 22 Mar 2009 21:16:57 +0000 Subject: (svn r15820) -Codechange: Some windows using nested widgets --- src/cheat_gui.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/cheat_gui.cpp') diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp index 3b0eb9e81..06998a766 100644 --- a/src/cheat_gui.cpp +++ b/src/cheat_gui.cpp @@ -132,6 +132,14 @@ static const Widget _cheat_widgets[] = { { WIDGETS_END}, }; +static const NWidgetPart _nested_cheat_widgets[] = { + NWidget(NWID_HORIZONTAL), + NWidget(WWT_CLOSEBOX, COLOUR_GREY, 0), + NWidget(WWT_CAPTION, COLOUR_GREY, 1), SetDataTip(STR_CHEATS, STR_018C_WINDOW_TITLE_DRAG_THIS), + EndContainer(), + NWidget(WWT_PANEL, COLOUR_GREY, 2), SetMinimalSize(400, 156), SetDataTip(0x0, STR_CHEATS_TIP), EndContainer(), +}; + struct CheatWindow : Window { int clicked; @@ -238,7 +246,7 @@ static const WindowDesc _cheats_desc( 240, 22, 400, 170, 400, 170, WC_CHEATS, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, - _cheat_widgets + _cheat_widgets, _nested_cheat_widgets, lengthof(_nested_cheat_widgets) ); -- cgit v1.2.3-54-g00ecf