summaryrefslogtreecommitdiffstats
path: root/editor/editor_zoom_widget.h
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-04-28 00:54:59 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-07-10 17:32:40 +0200
commit43f9699a2605bdad9a21eab64247bcee2e7c6f77 (patch)
tree46bba632eb2a63c5b6c578ada0b0d2524ed80730 /editor/editor_zoom_widget.h
parenta2d5f191d8d91f241a09233586da0f7e9deb8a76 (diff)
downloadredot-engine-43f9699a2605bdad9a21eab64247bcee2e7c6f77.tar.gz
Improve 2D editor zoom logic
- Add 1-5 shortcuts to zoom between 100% and 1600% quickly (similar to GIMP). - When holding down Alt, go through integer zoom values if above 100% or fractional zoom values with integer denominators if below 100% (50%, ~33.3%, 25%, …).
Diffstat (limited to 'editor/editor_zoom_widget.h')
-rw-r--r--editor/editor_zoom_widget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_zoom_widget.h b/editor/editor_zoom_widget.h
index 4e95018e52..c35faeefe7 100644
--- a/editor/editor_zoom_widget.h
+++ b/editor/editor_zoom_widget.h
@@ -56,7 +56,7 @@ public:
float get_zoom();
void set_zoom(float p_zoom);
- void set_zoom_by_increments(int p_increment_count);
+ void set_zoom_by_increments(int p_increment_count, bool p_integer_only = false);
};
#endif // EDITOR_ZOOM_WIDGET_H