Page 1 of 1

[Bilka] [0.17.36] Behavior of scale_with_zoom is inverted in rendering.draw_text

Posted: Fri May 03, 2019 7:16 pm
by tux_mark_5
From documentation:

Code: Select all

scale_with_zoom :: boolean (optional): Defaults to false. If true, the text is always the same size, regardless of player zoom.
If the parameter is true then it's always the same size. In other words, it never scales, which is the opposite of what scale_with_zoom means.

Re: [0.17.36] Behavior of scale_with_zoom is inverted in rendering.draw_text

Posted: Fri May 03, 2019 8:00 pm
by Bilka
The behaviour works correctly for me, what exactly is the problem?

Re: [Bilka] [0.17.36] Behavior of scale_with_zoom is inverted in rendering.draw_text

Posted: Fri May 03, 2019 8:03 pm
by tux_mark_5
Naming of scale_with_zoom parameter. scale_with_zoom = true implies that the scale/size of the rendered text changes, while it works the opposite way around.

It is possible that I'm just somehow misinterpreting the meaning of scale_with_zoom.

Re: [Bilka] [0.17.36] Behavior of scale_with_zoom is inverted in rendering.draw_text

Posted: Fri May 03, 2019 8:12 pm
by Bilka
Ah, it's a documentation issue, I see. Fixed for the next version:
scale_with_zoom :: boolean (optional): Defaults to false. If true, the text scales with player zoom, resulting in it always being the same size on screen, and the size compared to the game world changes.