Improve the message overlay in the 3D editor#105497
Improve the message overlay in the 3D editor#105497Calinou wants to merge 1 commit intogodotengine:masterfrom
Conversation
|
I like sentence case and suffixes but I'm not sure about other changes. There's too much padding and too much contrast. Comparison with blender: Paddings make numbers clump with wrong labels ("0.000m" is visually closer to "Z" than to "Y"). It would make sense to leave space for at most one extra character ( As for contrast |
|
@passivestar I've pushed an updated version with improved padding and reduced contrast for the outline. See OP for updated screenshots. Ideally, I'd use a thin space character ( Edit: It works if using TextServerAdvanced (the default), it just doesn't render if using TextServerFallback. @bruvzg Should we have a fallback to handle thin (possibly non-breaking) spaces? Compare this with no space at all: If you want, I can incorporate this into the PR. |
1cdbebe to
aeac773
Compare
Mickeon
left a comment
There was a problem hiding this comment.
Random addendum: This PR would further hammer in that 3D uses meters. There's some bits of the class reference I've seen that still assume the unit of measurement is generic (as was the case in 3.x).
editor/plugins/gizmos/visible_on_screen_notifier_3d_gizmo_plugin.cpp
Outdated
Show resolved
Hide resolved
2c74699 to
1f7442c
Compare
NBSP should be already supported (in terms of line breaking). Fallback server simply pulls glyph advances from the font. I guess we can add an hardcoded |
This makes the overall experience closer to Blender. - Use a fixed-width font, fixed decimal count and tab characters to ensure displaying rapidly changing numbers doesn't cause reflowing. - Add padding for negative numbers to further reduce reflows when a number goes from a negative to a positive value and vice versa. - Improve coordinate display to be more readable. - Use the `m` suffix for "meter" like in the inspector, and `°` for degrees. - Use a font outline to make the text more readable on bright backgrounds. - Use sentence case and don't end messages with a period.
1f7442c to
66f45b8
Compare




This makes the overall experience closer to Blender.
msuffix for "meter" like in the inspector, and°for degrees.These changes can be ported to the 2D editor once we reach an agreement on them.
Preview
3d_editor_message_overlay.mp4
Footnotes
If we used a default editor font with fixed-width numbers, we could keep using a proportional font for letters. Many other places in the editor would benefit from this, including the View Information/View Frame Time panels and the inspector. This exists as an OpenType stylistic alternate in some fonts like Inter, but Noto Sans does not have this alternate. ↩