hide lore entries during options screen (fixes #93)

This commit is contained in:
Haze Weathers 2023-05-11 14:48:24 -04:00
parent 0006f02a0f
commit 09a15604f1
2 changed files with 5 additions and 3 deletions

View file

@ -34,6 +34,7 @@ func _on_Restart_pressed():
func _on_Settings_pressed(): func _on_Settings_pressed():
$LoreContainer.visible = false
options_screen.focus() options_screen.focus()
@ -45,4 +46,5 @@ func _on_ExitLevel_pressed():
func _on_OptionsScreen_exit(): func _on_OptionsScreen_exit():
options_screen.visible = false options_screen.visible = false
$LoreContainer.visible = true
$Body/Settings.grab_focus() $Body/Settings.grab_focus()

View file

@ -94,9 +94,6 @@ margin_bottom = 41.0
focus_neighbour_top = NodePath("../Settings") focus_neighbour_top = NodePath("../Settings")
texture_focused = ExtResource( 3 ) texture_focused = ExtResource( 3 )
[node name="OptionsScreen" parent="." instance=ExtResource( 7 )]
visible = false
[node name="LoreContainer" type="MarginContainer" parent="."] [node name="LoreContainer" type="MarginContainer" parent="."]
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
@ -105,6 +102,9 @@ margin_top = 84.0
margin_right = -8.0 margin_right = -8.0
margin_bottom = -14.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/Resume" to="." method="_on_Resume_pressed"]
[connection signal="pressed" from="Body/Restart" to="." method="_on_Restart_pressed"] [connection signal="pressed" from="Body/Restart" to="." method="_on_Restart_pressed"]
[connection signal="pressed" from="Body/Settings" to="." method="_on_Settings_pressed"] [connection signal="pressed" from="Body/Settings" to="." method="_on_Settings_pressed"]