(svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input

This commit is contained in:
rubidium
2009-11-24 21:13:36 +00:00
parent ef11ef56a9
commit ab417c6c06
29 changed files with 159 additions and 276 deletions

View File

@@ -24,13 +24,11 @@
/** Widget numbers of the extra viewport window. */
enum ExtraViewportWindowWidgets {
EVW_CAPTION,
EVW_BACKGROUND,
EVW_VIEWPORT,
EVW_ZOOMIN,
EVW_ZOOMOUT,
EVW_MAIN_TO_VIEW,
EVW_VIEW_TO_MAIN,
EVW_SPACER,
};
/* Extra ViewPort Window Stuff */
@@ -40,7 +38,7 @@ static const NWidgetPart _nested_extra_view_port_widgets[] = {
NWidget(WWT_CAPTION, COLOUR_GREY, EVW_CAPTION), SetDataTip(STR_EXTRA_VIEW_PORT_TITLE, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
NWidget(WWT_STICKYBOX, COLOUR_GREY),
EndContainer(),
NWidget(WWT_PANEL, COLOUR_GREY, EVW_BACKGROUND),
NWidget(WWT_PANEL, COLOUR_GREY),
NWidget(NWID_VIEWPORT, INVALID_COLOUR, EVW_VIEWPORT), SetPadding(2, 2, 2, 2), SetResize(1, 1), SetFill(1, 1),
EndContainer(),
NWidget(NWID_HORIZONTAL),
@@ -54,7 +52,7 @@ static const NWidgetPart _nested_extra_view_port_widgets[] = {
EndContainer(),
EndContainer(),
NWidget(NWID_HORIZONTAL),
NWidget(WWT_PANEL, COLOUR_GREY, EVW_SPACER), SetFill(1, 1), SetResize(1, 0), EndContainer(),
NWidget(WWT_PANEL, COLOUR_GREY), SetFill(1, 1), SetResize(1, 0), EndContainer(),
NWidget(WWT_RESIZEBOX, COLOUR_GREY),
EndContainer(),
};