SpinBox "skin"?

: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.

I create a theme for the interface in the game. Add to the theme of the class “SpinBox”. It includes only the icon…

How can I change its “skin”?

:bust_in_silhouette: Reply From: xyzzyx

The first or left part of the SpinBox is a LineEdit object so you need to add the Class LineEdit to your theme too. Then you can change everything regarding theme and stylebox for it.

You can set everything in the inspector.

The theme can be set in GDScript too.
But it seems to be missing to set the icon in GDScript or I did not find it yet.

obj.add_icon_override("custom_icons/updown", preload("res://ArrowUpDown.png"))

does not seem to work. Although it works to use the same png file in the Inspector for defining the icon.

thank you ,so it was LineEdit

ruruarchy | 2021-01-15 13:15