add margins
This commit is contained in:
parent
e0677263d6
commit
a615ddc93d
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,12 @@ extends Control
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready():
|
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)
|
Global.state_changed.connect(_update_state)
|
||||||
if Global.current_state == Global.State.UNLOADED:
|
if Global.current_state == Global.State.UNLOADED:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue