Page 1 of 1

zoom buttons?

Posted: Mon May 09, 2016 7:49 pm
by sparr
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?

Posted: Tue May 10, 2016 5:23 am
by steinio
You. could use the ui scaling in the graphic options menu.

Greetings steinio

Re: zoom buttons?

Posted: Tue May 10, 2016 8:09 am
by sparr
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?

Posted: Tue May 10, 2016 8:30 am
by daniel34
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:

Code: Select all

/c game.local_player.zoom = 0.5
Instead of local_player you should use the player_index you get from the on_gui_click event.

Re: zoom buttons?

Posted: Sun May 29, 2016 3:09 pm
by binbinhfr
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).