My current structure is as following:
The problem I have is that I cannot reduce the size when using it in VBoxContainer and the text is not set properly.
I have the following set as the script of the button, this works for setting the text when running, but not in the editor. Prefixing it with tool works in the editor, but only as long as the scene is open and doesn't work when running:
export(String) var text: String setget set_text
func set_text(text: String) -> void:
$CenterContainer/Text.text = text