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

Add tooltips to dock menu and remove disabled items #99550

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

kitbdev
Copy link
Contributor

@kitbdev kitbdev commented Nov 22, 2024

Removed docks disabled in EditorFeatures from menu, instead of having them disabled (#89017 (comment))
I could alternatively keep them and add a tooltip if we want.

image

It will say 'Open the %s dock' if it is closed and 'Focus on the %s dock' if it is already open.
It's a little weird since they use the same text, the tooltip doesn't get moved when hovering over different items.

@Mickeon
Copy link
Contributor

Mickeon commented Nov 22, 2024

I think not having them appear in the menu at all makes sense. The Script and 3D editor buttons also disappear when disabled.

@kitbdev kitbdev force-pushed the add-dock-menu-tooltips branch from 9b6d1d2 to 2ebd1b6 Compare November 22, 2024 22:09
editor/editor_dock_manager.cpp Outdated Show resolved Hide resolved
@kitbdev kitbdev force-pushed the add-dock-menu-tooltips branch from 2ebd1b6 to b862a39 Compare November 22, 2024 22:24
@akien-mga akien-mga modified the milestones: 4.x, 4.4 Nov 28, 2024
@akien-mga akien-mga merged commit d79a9d4 into godotengine:master Nov 29, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@kitbdev kitbdev deleted the add-dock-menu-tooltips branch November 29, 2024 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants