Closed Bumer-32 closed 4 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?
sorry bad issue. I`m trying to set tooltip at button was pressed)
Here just simple dropdown menu with button inside it, and you can add tooltip to this button but it doesn't shows!
Maybe i'm making something wrong?