godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.3k stars 21.24k forks source link

Fix viewport message offsets #99487

Open passivestar opened 1 day ago

passivestar commented 1 day ago

A small UI fix, makes info messages follow the same margins as the rest of viewport overlays

g

passivestar commented 17 hours ago

Is there a way to change the magic numbers so they are not so magic?

10 is also hardcoded for all of the other overlays and I'm not sure if it needs to be themable (probably not?). as for the 14 I tried putting get_descent() in there but with no success, the results were just way off. Docs say it's just an approximation