mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 16:04:43 -04:00
Implement shrink option (#376)
* Add shrink option that allow change default shrink Shrink option allow to scale the godot application. This path enable dynamic change of this value in the options. * Fix the computation of cursor location For an unknown reason the function get_local_mouse_position return incorrect current_pixel when shrink is not 1. This path compute the transformation manually and povide correct values for any shrink value.
This commit is contained in:
parent
613dc9f0c8
commit
279228daba
5 changed files with 68 additions and 6 deletions
|
@ -45,6 +45,7 @@ var default_clear_color := Color.gray
|
|||
# Preferences
|
||||
var pressure_sensitivity_mode = Pressure_Sensitivity.NONE
|
||||
var open_last_project := false
|
||||
var shrink := 1.0
|
||||
var smooth_zoom := true
|
||||
var theme_type : int = Theme_Types.DARK
|
||||
var default_image_width := 64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue