How do I texture the dropdown of an OptionButton?

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

Is there a way to texture the dropdown of an OptionButton?

I can texture the button itself, but I can’t figure out how to texture the dropdown.enter image description here

:bust_in_silhouette: Reply From: volzhs

http://docs.godotengine.org/en/stable/learning/features/gui/gui_skinning.html

The images in the document are old but you can make a custom theme by following this.

:bust_in_silhouette: Reply From: jandrewlong

For the dropdown of an OptionButton, you need to theme PopupMenu.

Add a theme to the OptionButton, then add the class items from PopupMenu, as shown in the example here (choosing the class PopupMenu, instead of Button):
http://docs.godotengine.org/en/stable/learning/features/gui/gui_skinning.html#example-theming-a-button

Thanks a lot :slight_smile:
This should be written in the official reference. There is no intuitive way of knowing the name of that element.

ScemEnzo | 2019-08-21 16:49