(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
This commit is contained in:
@@ -1055,12 +1055,12 @@ public:
|
||||
SmallMapWindow::SmallMapType SmallMapWindow::map_type = SMT_CONTOUR;
|
||||
bool SmallMapWindow::show_towns = true;
|
||||
|
||||
static const WindowDesc _smallmap_desc = {
|
||||
static const WindowDesc _smallmap_desc(
|
||||
WDP_AUTO, WDP_AUTO, 350, 214, 446, 314,
|
||||
WC_SMALLMAP, WC_NONE,
|
||||
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
|
||||
_smallmap_widgets,
|
||||
};
|
||||
_smallmap_widgets
|
||||
);
|
||||
|
||||
void ShowSmallMap()
|
||||
{
|
||||
@@ -1197,12 +1197,12 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static const WindowDesc _extra_view_port_desc = {
|
||||
static const WindowDesc _extra_view_port_desc(
|
||||
WDP_AUTO, WDP_AUTO, 300, 68, 300, 268,
|
||||
WC_EXTRA_VIEW_PORT, WC_NONE,
|
||||
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
|
||||
_extra_view_port_widgets,
|
||||
};
|
||||
_extra_view_port_widgets
|
||||
);
|
||||
|
||||
void ShowExtraViewPortWindow(TileIndex tile)
|
||||
{
|
||||
|
Reference in New Issue
Block a user