summaryrefslogtreecommitdiff
path: root/src/cheat_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-03-22 21:16:57 +0000
committeralberth <alberth@openttd.org>2009-03-22 21:16:57 +0000
commit6567a29e182d6de528bbfc57258ec38c03a0385f (patch)
tree640eeab947c2dadf2731d1cf3d96388d4b4c36c1 /src/cheat_gui.cpp
parent12a31f3d5c47253174684de70d2297543a69838d (diff)
downloadopenttd-6567a29e182d6de528bbfc57258ec38c03a0385f.tar.xz
(svn r15820) -Codechange: Some windows using nested widgets
Diffstat (limited to 'src/cheat_gui.cpp')
-rw-r--r--src/cheat_gui.cpp10
1 files changed, 9 insertions, 1 deletions
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)
);