diff --git a/game/storage/PCScreen.gd b/game/storage/PCScreen.gd index d77e6e6..5969929 100644 --- a/game/storage/PCScreen.gd +++ b/game/storage/PCScreen.gd @@ -117,7 +117,7 @@ func _unhandled_input(event : InputEvent) -> void: #---------- construction de l'interface ---------- func _build_ui() -> void: - set_anchors_preset(Control.PRESET_FULL_RECT) + set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT) #le node est deja dans l'arbre : il faut aussi remettre les offsets a zero var bg := ColorRect.new() bg.color = Color(0, 0, 0, 0.8) diff --git a/game/storage/team_screen.gd b/game/storage/team_screen.gd index bd38c8d..eade3eb 100644 --- a/game/storage/team_screen.gd +++ b/game/storage/team_screen.gd @@ -61,7 +61,7 @@ func _unhandled_input(event : InputEvent) -> void: #---------- construction de l'interface ---------- func _build_ui() -> void: - set_anchors_preset(Control.PRESET_FULL_RECT) + set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT) #le node est deja dans l'arbre : il faut aussi remettre les offsets a zero var bg := ColorRect.new() bg.color = Color(0, 0, 0, 0.8) diff --git a/game/ui/hud/team_hud.gd b/game/ui/hud/team_hud.gd index 9dd94d8..44af731 100644 --- a/game/ui/hud/team_hud.gd +++ b/game/ui/hud/team_hud.gd @@ -137,7 +137,7 @@ func _unhandled_input(event : InputEvent) -> void: #---------- construction ---------- func _build_ui() -> void: - set_anchors_preset(Control.PRESET_FULL_RECT) + set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT) #le node est deja dans l'arbre : il faut aussi remettre les offsets a zero mouse_filter = Control.MOUSE_FILTER_IGNORE _root_box = MarginContainer.new()