Page 1 of 1
Gui Element Minimap Zoom
Posted: Fri Nov 29, 2024 9:18 am
by EvilPLa
Was the minimap zoom changed with 2.0. I got it all figured out for 1.1 and the minimaps looked fine. Now the seem to always zoom far out.
So was there a change, is it maybe a bug? Any infos will be appreciated.
Zoom in both pictures is 3
Old

- 11-29-2024, 10-13-45.png (394.05 KiB) Viewed 347 times
New

- 11-29-2024, 10-14-25.png (302.48 KiB) Viewed 347 times
Re: Gui Element Minimap Zoom
Posted: Wed Mar 19, 2025 2:06 am
by Hadron
Hey ran into the same problem here when playing with the zoom values. Seems like zooming has changed. If you use
Code: Select all
local minimap = map_frame.add{
type = "minimap",
name = "minimap",
zoom = 1.0
}
Seems like the zoom is the new value. Whereas if you did this instead
Code: Select all
local minimap = map_frame.add{
type = "minimap",
name = "minimap",
}
minimap.zoom = 1.0
It should match the old zoom
Re: Gui Element Minimap Zoom
Posted: Tue Apr 01, 2025 3:46 pm
by EvilPLa
Ok, with one the recent patches the zoom works as it did in 1.1, glad I kept that old code nearby