From a615ddc93d74340c621e345afa964fd316fd0ff4 Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Thu, 21 Dec 2023 10:08:46 +0100 Subject: [PATCH] add margins --- godot/main.gd | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/godot/main.gd b/godot/main.gd index 159bd4a..7fc10e9 100644 --- a/godot/main.gd +++ b/godot/main.gd @@ -2,6 +2,12 @@ extends Control # Called when the node enters the scene tree for the first time. func _ready(): + const margin_value = 25 + $MarginContainer.add_theme_constant_override("margin_top", margin_value) + $MarginContainer.add_theme_constant_override("margin_left", margin_value) + $MarginContainer.add_theme_constant_override("margin_bottom", margin_value) + $MarginContainer.add_theme_constant_override("margin_right", margin_value) + Global.state_changed.connect(_update_state) if Global.current_state == Global.State.UNLOADED: pass