diff --git a/objects/hud/pause_screen.gd b/objects/hud/pause_screen.gd index f919d27..b9a0da4 100644 --- a/objects/hud/pause_screen.gd +++ b/objects/hud/pause_screen.gd @@ -34,6 +34,7 @@ func _on_Restart_pressed(): func _on_Settings_pressed(): + $LoreContainer.visible = false options_screen.focus() @@ -45,4 +46,5 @@ func _on_ExitLevel_pressed(): func _on_OptionsScreen_exit(): options_screen.visible = false + $LoreContainer.visible = true $Body/Settings.grab_focus() diff --git a/objects/hud/pause_screen.tscn b/objects/hud/pause_screen.tscn index 8204145..157fad7 100644 --- a/objects/hud/pause_screen.tscn +++ b/objects/hud/pause_screen.tscn @@ -94,9 +94,6 @@ margin_bottom = 41.0 focus_neighbour_top = NodePath("../Settings") texture_focused = ExtResource( 3 ) -[node name="OptionsScreen" parent="." instance=ExtResource( 7 )] -visible = false - [node name="LoreContainer" type="MarginContainer" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 @@ -105,6 +102,9 @@ margin_top = 84.0 margin_right = -8.0 margin_bottom = -14.0 +[node name="OptionsScreen" parent="." instance=ExtResource( 7 )] +visible = false + [connection signal="pressed" from="Body/Resume" to="." method="_on_Resume_pressed"] [connection signal="pressed" from="Body/Restart" to="." method="_on_Restart_pressed"] [connection signal="pressed" from="Body/Settings" to="." method="_on_Settings_pressed"]