zoom buttons?
zoom buttons?
I vaguely recall having a mod, back around 0.9, that gave me UI buttons for zooming to specific zoom levels. I can't find it. Does it exist? Is it updated? Should I write a new one?
Re: zoom buttons?
You. could use the ui scaling in the graphic options menu.
Greetings steinio
Greetings steinio
Re: zoom buttons?
UI scaling isn't related to game zoom, afaik. I'm talking about the zooming you normally do with the mouse wheel.
Re: zoom buttons?
I don't recall seeing a mod that allows you to zoom using buttons, but then again I wasn't around when 0.9 was released.
It shouldn't be too difficult to write a mod that does this, it's basically a one-liner:
Instead of local_player you should use the player_index you get from the on_gui_click event.
It shouldn't be too difficult to write a mod that does this, it's basically a one-liner:
Code: Select all
/c game.local_player.zoom = 0.5
Re: zoom buttons?
The only problem is that zoom variable is Write-Only. So your mod could not know which is the current zoom level you last choose with your mousewheel... I already ask the devs for that, but they don't want to make it readable for obscure desync questions (infact, in case your mod would do something specific with this zoom value, it could cause desync).
My mods on the Factorio Mod Portal 
