wisp-forest / owo-lib

Open ωorthωhile Operations, yes the acronym was "totally accidental"
https://modrinth.com/mod/owo-lib
MIT License
191 stars 37 forks source link

Dropdown elements can't have tooltips #234

Closed Bumer-32 closed 4 months ago

Bumer-32 commented 5 months ago

Here just simple dropdown menu with button inside it, and you can add tooltip to this button but it doesn't shows!

DropdownComponent.openContextMenu(
                this,
                rootComponent,
                FlowLayout::child,
                selectMode.x.toDouble(),
                selectMode.y.toDouble() + selectMode.height.toDouble(),
            ) { dropdown ->
                dropdown.allowOverflow(true)

                dropdown.button(Text.literal("something")) { button ->
                    button.tooltip(Text.literal("my awesome tooltip")) // won't do anything but mc can launch with it
                }
            }

Maybe i'm making something wrong?

Bumer-32 commented 4 months ago

sorry bad issue. I`m trying to set tooltip at button was pressed)