Files
Babushka/prefabs/interactions/interaction_area_2d.tscn
T

35 lines
1.1 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=4 format=3 uid="uid://cqc72e4hq6bcd"]
2025-05-12 00:16:13 +02:00
2025-05-28 16:28:31 +02:00
[ext_resource type="Script" uid="uid://ckp413wrub5fm" path="res://scripts/CSharp/Common/CharacterControls/InteractionArea2D.cs" id="1_5ajrf"]
2025-05-12 00:16:13 +02:00
[sub_resource type="CircleShape2D" id="CircleShape2D_npluf"]
2025-05-18 11:44:33 +02:00
resource_local_to_scene = true
radius = 300.0
2025-05-12 00:16:13 +02:00
[sub_resource type="Theme" id="Theme_5ajrf"]
default_font_size = 75
2025-05-12 00:16:13 +02:00
[node name="InteractionArea" type="Node2D" node_paths=PackedStringArray("_area", "_label")]
2025-05-28 16:28:31 +02:00
script = ExtResource("1_5ajrf")
_area = NodePath("Area2D")
2025-05-12 00:16:13 +02:00
_label = NodePath("Label")
[node name="Area2D" type="Area2D" parent="."]
2025-05-18 12:32:56 +02:00
collision_mask = 4
2025-05-12 00:16:13 +02:00
[node name="CollisionShape3D" type="CollisionShape2D" parent="Area2D"]
2025-05-12 00:16:13 +02:00
shape = SubResource("CircleShape2D_npluf")
[node name="Label" type="Label" parent="."]
visible = false
offset_left = -46.0
offset_top = -55.0
offset_right = 45.0
offset_bottom = 48.0
theme = SubResource("Theme_5ajrf")
2025-05-12 00:16:13 +02:00
text = "[E]"
horizontal_alignment = 1
2025-05-12 00:16:13 +02:00
[connection signal="body_entered" from="Area2D" to="." method="OnPlayerEntered"]
[connection signal="body_exited" from="Area2D" to="." method="OnPlayerExited"]