fix teleporter graphics in name entry

This commit is contained in:
Haze Weathers 2023-11-25 19:22:14 -05:00
parent 8299648c98
commit a9c7106c3b
2 changed files with 23 additions and 14 deletions

View file

@ -93,6 +93,12 @@ func _on_backspace():
print(file.name.length()) print(file.name.length())
func _on_Exit_area_entered(area: Area2D) -> void: func _on_Exit_area_entered(area: Area2D) -> void:
if area.is_in_group("player_hitbox"):
var player = area.get_parent()
player.state_chart.send_event("start_teleport")
player.connect("teleport_finished", self, "_on_player_teleport_finished")
func _on_player_teleport_finished() -> void:
if file.name.length() > 0: if file.name.length() > 0:
get_tree().paused = true get_tree().paused = true
file.save_to_file() file.save_to_file()

View file

@ -55,14 +55,14 @@ shader_param/uv_transform = Transform2D( 1, 0, 2, 1, 0, 0 )
[sub_resource type="ShaderMaterial" id=9] [sub_resource type="ShaderMaterial" id=9]
shader = ExtResource( 18 ) shader = ExtResource( 18 )
shader_param/speed = 5.0 shader_param/speed = 1.0
shader_param/cycle_offset = 0.0 shader_param/cycle_offset = 0.0
shader_param/wave_length = 8.0 shader_param/wave_length = 8.0
shader_param/thickness = 0.1 shader_param/thickness = 0.1
[sub_resource type="ShaderMaterial" id=10] [sub_resource type="ShaderMaterial" id=10]
shader = ExtResource( 18 ) shader = ExtResource( 18 )
shader_param/speed = -6.0 shader_param/speed = -2.0
shader_param/cycle_offset = 3.0 shader_param/cycle_offset = 3.0
shader_param/wave_length = 5.0 shader_param/wave_length = 5.0
shader_param/thickness = 0.1 shader_param/thickness = 0.1
@ -88,7 +88,10 @@ __meta__ = {
"_edit_horizontal_guides_": [ ] "_edit_horizontal_guides_": [ ]
} }
[node name="Background" type="ColorRect" parent="."] [node name="BackgroundLayer" type="CanvasLayer" parent="."]
layer = -10
[node name="Background" type="ColorRect" parent="BackgroundLayer"]
material = SubResource( 1 ) material = SubResource( 1 )
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
@ -131,17 +134,6 @@ margin_right = 88.0
margin_bottom = 112.0 margin_bottom = 112.0
theme = ExtResource( 2 ) theme = ExtResource( 2 )
[node name="Body" type="Label" parent="DifficultySelect/ButtonsPanel"]
material = SubResource( 2 )
margin_left = 16.0
margin_top = 8.0
margin_right = 65.0
margin_bottom = 57.0
text = "sweet
salty
spicy
pungent"
[node name="Sweet" type="TextureButton" parent="DifficultySelect/ButtonsPanel"] [node name="Sweet" type="TextureButton" parent="DifficultySelect/ButtonsPanel"]
material = SubResource( 3 ) material = SubResource( 3 )
margin_left = 8.0 margin_left = 8.0
@ -183,6 +175,17 @@ focus_neighbour_top = NodePath("../Spicy")
focus_neighbour_bottom = NodePath("../Sweet") focus_neighbour_bottom = NodePath("../Sweet")
texture_focused = ExtResource( 6 ) texture_focused = ExtResource( 6 )
[node name="Body" type="Label" parent="DifficultySelect/ButtonsPanel"]
material = SubResource( 2 )
margin_left = 16.0
margin_top = 8.0
margin_right = 65.0
margin_bottom = 57.0
text = "sweet
salty
spicy
pungent"
[node name="DescriptionPanel" type="Panel" parent="DifficultySelect"] [node name="DescriptionPanel" type="Panel" parent="DifficultySelect"]
material = SubResource( 2 ) material = SubResource( 2 )
margin_left = 16.0 margin_left = 16.0