(svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions

This commit is contained in:
rubidium
2009-11-24 18:05:55 +00:00
parent f4fb782fbf
commit 50359b2d08
39 changed files with 332 additions and 543 deletions

View File

@@ -133,15 +133,13 @@ static const CheatEntry _cheats_ui[] = {
/* Names of the cheat window widgets. */
enum CheatWidgets {
CW_CLOSEBOX,
CW_CAPTION,
CW_PANEL,
};
static const NWidgetPart _nested_cheat_widgets[] = {
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_GREY, CW_CLOSEBOX),
NWidget(WWT_CAPTION, COLOUR_GREY, CW_CAPTION), SetDataTip(STR_CHEATS, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
NWidget(WWT_CLOSEBOX, COLOUR_GREY),
NWidget(WWT_CAPTION, COLOUR_GREY), SetDataTip(STR_CHEATS, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
EndContainer(),
NWidget(WWT_PANEL, COLOUR_GREY, CW_PANEL), SetDataTip(0x0, STR_CHEATS_TOOLTIP), EndContainer(),
};