(svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input
This commit is contained in:
@@ -296,8 +296,6 @@ static void ShowTownAuthorityWindow(uint town)
|
||||
/** Widget numbers of the town view window. */
|
||||
enum TownViewWidgets {
|
||||
TVW_CAPTION,
|
||||
TVW_VIEWPORTPANEL,
|
||||
TVW_VIEWPORTINSET,
|
||||
TVW_VIEWPORT,
|
||||
TVW_INFOPANEL,
|
||||
TVW_CENTERVIEW,
|
||||
@@ -525,8 +523,8 @@ static const NWidgetPart _nested_town_game_view_widgets[] = {
|
||||
NWidget(WWT_CAPTION, COLOUR_BROWN, TVW_CAPTION), SetDataTip(STR_TOWN_VIEW_TOWN_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
|
||||
NWidget(WWT_STICKYBOX, COLOUR_BROWN),
|
||||
EndContainer(),
|
||||
NWidget(WWT_PANEL, COLOUR_BROWN, TVW_VIEWPORTPANEL),
|
||||
NWidget(WWT_INSET, COLOUR_BROWN, TVW_VIEWPORTINSET), SetPadding(2, 2, 2, 2),
|
||||
NWidget(WWT_PANEL, COLOUR_BROWN),
|
||||
NWidget(WWT_INSET, COLOUR_BROWN), SetPadding(2, 2, 2, 2),
|
||||
NWidget(NWID_VIEWPORT, INVALID_COLOUR, TVW_VIEWPORT), SetMinimalSize(254, 86), SetFill(1, 0), SetResize(1, 1), SetPadding(1, 1, 1, 1),
|
||||
EndContainer(),
|
||||
EndContainer(),
|
||||
@@ -555,8 +553,8 @@ static const NWidgetPart _nested_town_editor_view_widgets[] = {
|
||||
NWidget(WWT_PUSHTXTBTN, COLOUR_BROWN, TVW_CHANGENAME), SetMinimalSize(76, 14), SetDataTip(STR_BUTTON_RENAME, STR_TOWN_VIEW_RENAME_TOOLTIP),
|
||||
NWidget(WWT_STICKYBOX, COLOUR_BROWN),
|
||||
EndContainer(),
|
||||
NWidget(WWT_PANEL, COLOUR_BROWN, TVW_VIEWPORTPANEL),
|
||||
NWidget(WWT_INSET, COLOUR_BROWN, TVW_VIEWPORTINSET), SetPadding(2, 2, 2, 2),
|
||||
NWidget(WWT_PANEL, COLOUR_BROWN),
|
||||
NWidget(WWT_INSET, COLOUR_BROWN), SetPadding(2, 2, 2, 2),
|
||||
NWidget(NWID_VIEWPORT, INVALID_COLOUR, TVW_VIEWPORT), SetMinimalSize(254, 86), SetFill(1, 1), SetResize(1, 1), SetPadding(1, 1, 1, 1),
|
||||
EndContainer(),
|
||||
EndContainer(),
|
||||
|
Reference in New Issue
Block a user