Hi when playing around with the minimap zoom when modding I found that the zoom level is different when initializing vs setting it via the element.
For example this:
local minimap = map_frame.add{
type = "minimap",
name = "minimap"
zoom = 1.0
}
vs this will yield two different zoom levels ...
Search found 2 matches
- Wed Mar 19, 2025 2:16 am
- Forum: Resolved Problems and Bugs
- Topic: [boskid][2.0.41] Incorrect minimap zoom
- Replies: 1
- Views: 990
- Wed Mar 19, 2025 2:06 am
- Forum: Modding help
- Topic: Gui Element Minimap Zoom
- Replies: 2
- Views: 253
Re: Gui Element Minimap Zoom
Hey ran into the same problem here when playing with the zoom values. Seems like zooming has changed. If you use
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
local minimap = map_frame ...
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
local minimap = map_frame ...