ItemList - how to disable tooltip?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DimitriyPS
:warning: Old Version Published before Godot 3 was released.

ItemList - how to disable tooltip?

image

:bust_in_silhouette: Reply From: Zylann

I just had a look at the implementation of ItemList.get_tooltip(pos): https://github.com/godotengine/godot/blob/master/scene/gui/item_list.cpp#L1196

If the tooltip is empty, the item text is returned. So it looks like you can’t set an empty tooltip, and even then it would still be shown.

Also I don’t see any option to disable tooltips either in ItemList or Control, so you might want to create an issue on Github if it’s a blocking problem for you.

Thanks, I wrote on github.

DimitriyPS | 2016-08-22 15:01

:bust_in_silhouette: Reply From: volzhs

You can disable tooltip if you compile templates with special option.

scons platform=android disable_tooltip=yes

The tooltip will not appear after export your project with this template, but this will disable whole tooltips.

I’ve never heard of that SCons build option – it’s not available in recent Godot versions at least.

Calinou | 2020-12-14 22:01

:bust_in_silhouette: Reply From: Ram

Late to the party but for everyone else having this question in the future, use itemList.set_item_tooltip_enabled(item_idx, false).