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

Make the Tooltip Position Offset Configurable #26484

Merged
merged 1 commit into from
Mar 13, 2019
Merged

Make the Tooltip Position Offset Configurable #26484

merged 1 commit into from
Mar 13, 2019

Conversation

Andrettin
Copy link
Contributor

The offset for the tooltip position is at present hardcoded in \scene\main\viewport.cpp to be (10, 10), in the Viewport::_gui_show_tooltip() function.

This can be problematic for certain cursor images; if the image fills most of the 32x32 space cursors should have, then tooltips will appear partially below the cursor.

This pull request adds a project setting which allows configuring the tooltip position offset. The default for this setting is the same as the previous hardcoded value (10, 10).

@Andrettin Andrettin requested review from reduz and a team as code owners March 2, 2019 13:24
@Chaosus Chaosus added this to the 3.2 milestone Mar 2, 2019
@akien-mga akien-mga merged commit 775e74e into godotengine:master Mar 13, 2019
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.1.1.

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.

3 participants