Skip to content

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

Open
@AlmasB

Description

@AlmasB

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    codefest23-24difficulty:mediumAPI design elements, need time to think throughhelp wantedContributions welcome / high PR acceptance ratelang:kotlin-onlySolution should be in Kotlin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions