You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Allow higher and lower maximum zoom values in GraphEdit
Low zoom values result in unreadable text, but it can still be
useful for previewing purposes.
Eventually, characters could be replaced by rectangles at very low
zoom levels to improve the visual appearance.
(cherry picked from commit 74c584472c)
This commit is contained in:
committed by
Rémi Verschelde
parent
fbe8226213
commit
0cb19bc69c
@@ -41,8 +41,13 @@
|
|||||||
|
|
||||||
#define ZOOM_SCALE 1.2
|
#define ZOOM_SCALE 1.2
|
||||||
|
|
||||||
#define MIN_ZOOM (((1 / ZOOM_SCALE) / ZOOM_SCALE) / ZOOM_SCALE)
|
// Allow dezooming 8 times from the default zoom level.
|
||||||
#define MAX_ZOOM (1 * ZOOM_SCALE * ZOOM_SCALE * ZOOM_SCALE)
|
// At low zoom levels, text is unreadable due to its small size and poor filtering,
|
||||||
|
// but this is still useful for previewing purposes.
|
||||||
|
#define MIN_ZOOM (1 / Math::pow(ZOOM_SCALE, 8))
|
||||||
|
|
||||||
|
// Allow zooming 4 times from the default zoom level.
|
||||||
|
#define MAX_ZOOM (1 * Math::pow(ZOOM_SCALE, 4))
|
||||||
|
|
||||||
#define MINIMAP_OFFSET 12
|
#define MINIMAP_OFFSET 12
|
||||||
#define MINIMAP_PADDING 5
|
#define MINIMAP_PADDING 5
|
||||||
|
|||||||
Reference in New Issue
Block a user