|
@@ -1052,18 +1052,18 @@ 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()
|
|
|
{
|
|
|
AllocateWindowDescFront<SmallMapWindow>(&_smallmap_desc, 0);
|
|
|
}
|
|
|
|
|
@@ -1194,18 +1194,18 @@ public:
|
|
|
{
|
|
|
/* Only handle zoom message if intended for us (msg ZOOM_IN/ZOOM_OUT) */
|
|
|
HandleZoomMessage(this, this->viewport, EVW_ZOOMIN, EVW_ZOOMOUT);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
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)
|
|
|
{
|
|
|
int i = 0;
|
|
|
|
|
|
/* find next free window number for extra viewport */
|