How do I increase the thickness of HSeparator?

Godot Version

4.2

Question

Here is what I have tried so far:

item = HSeparator.new()
item.add_theme_constant_override(“thickness”, 5)
item.add_theme_constant_override(“separation”, 5)
#item.custom_minimum_size.y = 5
print( add sep 1)
$EncounterGrid.add_child(item)

Thank you!

Hi, in order to increase the thickness of the HSeparator node, you need to set the “separator” stylebox. Increasing the separation will increase the size of the HSeparator, but will not increase the visual size of the line drawn on the screen.

	var item = HSeparator.new()
	var s = StyleBoxLine.new()
	s.thickness = 5
	item.add_theme_stylebox_override("separator", s)
	add_child(item)
1 Like