Modify inherited properties of ConfirmationDIalog in Inspector

Godot Version

4

Question

I created a ConfirmationDialog in the scene editor. The issue that I have is I cannot set the Theme Override Styles it inherits from AcceptDialog. Is there anyway to edit the inherited properties in the Inspector?

I have to do it manually in code as below instead.

	var sb:StyleBoxFlat = get_theme_stylebox("panel")
	sb.border_color=Color.WHITE_SMOKE
	sb.border_width_bottom=2
	sb.border_width_left=2
	sb.border_width_right=2
	sb.border_width_top=2
	add_theme_stylebox_override("panel", sb)

I think that your only option if you want to do it in the editor is to create a new Theme resource in its Window.theme property, add the AcceptDialog type and modify its panel StyleBox More info about the theme editor here Using the theme editor — Godot Engine (stable) documentation in English

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.