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

Re-implement Tooltips in FXGLDefaultMenu using same window for better cross-platform support #1019

Open
AlmasB opened this issue Apr 21, 2021 · 0 comments
Labels
codefest23-24 difficulty:medium API design elements, need time to think through help wanted Contributions welcome / high PR acceptance rate lang:kotlin-only Solution should be in Kotlin

Comments

@AlmasB
Copy link
Owner

AlmasB commented Apr 21, 2021

protected fun createContentAchievements(): MenuContent function of interest.

val tooltip = Tooltip(a.description)
tooltip.showDelay = Duration.seconds(0.1)
Tooltip.install(text, tooltip)

In short, we can't use Tooltip because its implementation uses an external Stage.

First, a potential implementation of a tooltip UI object (that is drawn in the same Stage) should be discussed. Eventually, this may go to the UI factory service.

@AlmasB AlmasB added help wanted Contributions welcome / high PR acceptance rate difficulty:medium API design elements, need time to think through lang:kotlin-only Solution should be in Kotlin labels Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codefest23-24 difficulty:medium API design elements, need time to think through help wanted Contributions welcome / high PR acceptance rate lang:kotlin-only Solution should be in Kotlin
Projects
None yet
Development

No branches or pull requests

1 participant