Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip is missing info text (Layer values, Node type, Configuration warning) #91958

Open
TAGames opened this issue May 14, 2024 · 1 comment · May be fixed by #91965
Open

Tooltip is missing info text (Layer values, Node type, Configuration warning) #91958

TAGames opened this issue May 14, 2024 · 1 comment · May be fixed by #91965
Milestone

Comments

@TAGames
Copy link

TAGames commented May 14, 2024

Tested versions

Reproducable in:
v4.2.1.stable.official [b09f793],
v4.2.2.stable.official [15073af],
v4.3.dev6.mono.official [89850d5]

Not reproducable in:
v4.1.4.stable.official [fe0e8e5]

System information

Godot v4.3.dev6.mono - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 31.0.15.5244) - AMD Ryzen 7 3800X 8-Core Processor (16 Threads)

Issue description

The tooltip is missing all info text like collision layer values, node types and configuration warnings. Basically everything after the headline/title.

The last version I had the tooltip working was v4.1.4.stable.official [fe0e8e5].

Godot 4 2 1 Type

Godot 4 2 1

Things I couldn't reproduce was the tooltip for configuration warnings.
Sometimes the warning was shown only the first time when hovering it, sometimes it wasn't and sometimes it was shown for the parent node but not for the child node, as seen in the video:

Godot.Tooltip.mp4

Steps to reproduce

  1. Create new project
  2. Create a new node, for example area2d
  3. Hover node in scene tree to show tooltip/hover collision layer/mask values

Edit:
4. EditorSettings: Display Scale: Custom. Custom Display Scale 1.4

Minimal reproduction project (MRP)

N/A

@TAGames
Copy link
Author

TAGames commented May 14, 2024

Update:

I used EditorSettings:

  • Display Scale: Custom
  • Custom Display Scale: 1.4
    on a 4k screen (using other resolutions didn't change anything).

Setting the scale to anything other than 1.4 fixed the issue. (Tested 1.0, 1.2, 1.3, 1.41, 1.5). But setting it back to 1.4 brings back the issue of missing tooltip texts. I'm very confused now...

1.41.mp4

No issue with that in v4.1.4.stable.official [fe0e8e5].

aaronp64 added a commit to aaronp64/godot that referenced this issue May 14, 2024
…size()

When getting the minimum size for a tooltip, we get the value as a Vector2.  Window::set_size() takes a Vector2i, so this size was getting truncated.  At certain display scales, this could be enough to cut off part of the tooltip.  Updated to call Vector2::ceil() to round up before calling Window::set_size()

Fixes godotengine#91958
@AThousandShips AThousandShips added this to the 4.3 milestone May 15, 2024
aaronp64 added a commit to aaronp64/godot that referenced this issue May 15, 2024
When getting the minimum size for a tooltip, we get the value as a Vector2.  Window::set_size() takes a Vector2i, so this size was getting truncated.  At certain display scales, this could be enough to cut off part of the tooltip.  Updated to call Vector2::ceil() to round up before calling Window::set_size()

Fixes godotengine#91958
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants