Gui Element Minimap Zoom

Place to get help with not working mods / modding interface.
User avatar
EvilPLa
Inserter
Inserter
Posts: 27
Joined: Sat Nov 14, 2020 7:26 am
Contact:

Gui Element Minimap Zoom

Post 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
11-29-2024, 10-13-45.png (394.05 KiB) Viewed 252 times
New
11-29-2024, 10-14-25.png
11-29-2024, 10-14-25.png (302.48 KiB) Viewed 252 times
Wise men speak because they have something to say Fools because they have to say something. (Plato)
Hadron
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Mar 19, 2025 2:00 am
Contact:

Re: Gui Element Minimap Zoom

Post 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
User avatar
EvilPLa
Inserter
Inserter
Posts: 27
Joined: Sat Nov 14, 2020 7:26 am
Contact:

Re: Gui Element Minimap Zoom

Post by EvilPLa »

Ok, with one the recent patches the zoom works as it did in 1.1, glad I kept that old code nearby
Wise men speak because they have something to say Fools because they have to say something. (Plato)
Post Reply

Return to “Modding help”