Slight UI tweaks; Some Fish Cascade Fixes
This commit is contained in:
@@ -27,6 +27,13 @@ func _on_back_pressed() -> void:
|
||||
func _on_options_pressed() -> void:
|
||||
pass
|
||||
|
||||
func _on_select_exit_pressed() -> void:
|
||||
var tween := create_tween()
|
||||
tween.parallel().tween_property(fade, "modulate:a", 1, 1).set_trans(Tween.TRANS_SINE).set_ease(Tween.EASE_OUT)
|
||||
button_sound.play()
|
||||
await button_sound.finished
|
||||
get_tree().change_scene_to_file("res://scenes/menus/select_mode/select_mode.tscn")
|
||||
|
||||
func _on_exit_pressed() -> void:
|
||||
var tween := create_tween()
|
||||
tween.parallel().tween_property(fade, "modulate:a", 1, 1).set_trans(Tween.TRANS_SINE).set_ease(Tween.EASE_OUT)
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
[gd_scene format=3 uid="uid://dm6jp4gjboooc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://15e0tr7en3iq" path="res://scenes/menus/pause/pause.gd" id="1_8lsyj"]
|
||||
[ext_resource type="Theme" uid="uid://b34g4whlitecf" path="res://assets/visual/sprites/tuxtheme.tres" id="2_0d44p"]
|
||||
[ext_resource type="Script" uid="uid://or8mcd735o0r" path="res://scenes/game/restart.gd" id="2_miayh"]
|
||||
[ext_resource type="AudioStream" uid="uid://podscahsf0d4" path="res://assets/audio/sfx/MenuAccept.wav" id="2_y88h8"]
|
||||
[ext_resource type="Texture2D" uid="uid://dew71sa7dwdnc" path="res://textures/tux typing +.png" id="4_cy42q"]
|
||||
|
||||
[node name="Pause" type="Control" unique_id=1227462733]
|
||||
layout_mode = 3
|
||||
@@ -35,6 +37,7 @@ offset_right = 267.0
|
||||
offset_bottom = 162.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("2_0d44p")
|
||||
alignment = 1
|
||||
vertical = true
|
||||
|
||||
@@ -58,6 +61,11 @@ size_flags_vertical = 3
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "Options"
|
||||
|
||||
[node name="SelectExit" type="Button" parent="BoxContainer" unique_id=1817893995]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "Select Mode"
|
||||
|
||||
[node name="Exit" type="Button" parent="BoxContainer" unique_id=870296717]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
@@ -69,7 +77,22 @@ text = "Back To Title
|
||||
stream = ExtResource("2_y88h8")
|
||||
volume_db = -10.0
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="." unique_id=855388024]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -140.0
|
||||
offset_top = -332.0
|
||||
offset_right = 514.0
|
||||
offset_bottom = 200.0
|
||||
grow_vertical = 0
|
||||
texture = ExtResource("4_cy42q")
|
||||
expand_mode = 1
|
||||
stretch_mode = 4
|
||||
|
||||
[connection signal="pressed" from="BoxContainer/Back" to="." method="_on_back_pressed"]
|
||||
[connection signal="pressed" from="BoxContainer/Restart" to="BoxContainer/Restart" method="_on_pressed"]
|
||||
[connection signal="pressed" from="BoxContainer/Options" to="." method="_on_options_pressed"]
|
||||
[connection signal="pressed" from="BoxContainer/SelectExit" to="." method="_on_select_exit_pressed"]
|
||||
[connection signal="pressed" from="BoxContainer/Exit" to="." method="_on_exit_pressed"]
|
||||
|
||||
Reference in New Issue
Block a user