1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

save mapzoom

This commit is contained in:
Laserlicht
2025-02-21 23:01:47 +01:00
parent 3627731041
commit 7beabc44ea
3 changed files with 16 additions and 5 deletions

View File

@ -210,7 +210,12 @@ void MapView::onMapZoomLevelChanged(int stepsChange, bool useDeadZone)
void MapView::onViewMapActivated()
{
controller->activateAdventureContext();
controller->setTileSize(Point(32, 32));
int zoom = persistentStorage["tileZoom"].Integer();
if(zoom)
controller->setTileSize(Point(zoom, zoom));
else
controller->setTileSize(Point(32, 32));
}
PuzzleMapView::PuzzleMapView(const Point & offset, const Point & dimensions, const int3 & tileToCenter)