mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 21:44:42 -04:00
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:
parent
7d2b15cc0b
commit
bdd3cdf45e
3 changed files with 9 additions and 9 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue