Improved the "fit to frame" zoom button

The resulting camera zoom now depends on the window size. More specifically, the main viewport's x size. This formula is purely trial-and-error, and it may not work perfectly, or properly for some screen sizes.

If anyone wants to improve it, feel free to do so!
This commit is contained in:
OverloadedOrama 2020-04-13 16:39:18 +03:00
parent 7d2b15cc0b
commit bdd3cdf45e
3 changed files with 9 additions and 9 deletions

View file

@ -23,7 +23,7 @@ enum Direction {
}
# Indices are as in the Direction enum
# This is the total time the key for
# This is the total time the key for
# that direction has been pressed.
var key_move_press_time := [0.0, 0.0, 0.0, 0.0]