Files

63 lines
2.5 KiB
Plaintext
Raw Permalink Normal View History

2025-12-12 13:46:32 +01:00
[gd_scene load_steps=8 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"]
[ext_resource type="Resource" uid="uid://clwqh3w5aqi5e" path="res://resources/low code/interactables/var_interactableToTrigger.tres" id="2_o1drf"]
[ext_resource type="Material" uid="uid://blch5kdhkbj75" path="res://art/materials/simple_interactable_outline.tres" id="2_qoey7"]
2025-10-22 19:30:33 +02:00
[ext_resource type="Script" uid="uid://cp2q4k62sjo6h" path="res://scripts/CSharp/Common/CharacterControls/DetectableInteractionArea.cs" id="3_2wrrq"]
2025-12-12 13:46:32 +01:00
[ext_resource type="Script" uid="uid://pqemey80frcq" path="res://scripts/CSharp/Low Code/Variables/VariableListener.cs" id="4_gj2nu"]
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
2025-10-24 15:13:35 +02:00
radius = 150.0
2025-05-12 00:16:13 +02:00
[sub_resource type="Theme" id="Theme_5ajrf"]
default_font_size = 30
2025-12-16 13:04:40 +01:00
[node name="InteractionArea" type="Node2D" node_paths=PackedStringArray("_selectionChangeListener", "_area", "_label")]
2025-05-28 16:28:31 +02:00
script = ExtResource("1_5ajrf")
2025-12-16 13:04:40 +01:00
_selectionChangeListener = NodePath("SelectionListener")
_area = NodePath("Area2D")
_label = NodePath("Area2D/CanvasLayer/MarginContainer/Label")
_outlineMaterial = ExtResource("2_qoey7")
2025-05-12 00:16:13 +02:00
[node name="Area2D" type="Area2D" parent="." node_paths=PackedStringArray("interactionArea2D")]
2025-05-18 12:32:56 +02:00
collision_mask = 4
2025-10-22 19:30:33 +02:00
script = ExtResource("3_2wrrq")
interactionArea2D = NodePath("..")
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="CanvasLayer" type="CanvasLayer" parent="Area2D"]
[node name="MarginContainer" type="MarginContainer" parent="Area2D/CanvasLayer"]
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -88.0
offset_top = -100.0
offset_right = 3.0
offset_bottom = 3.0
grow_horizontal = 0
grow_vertical = 0
theme_override_constants/margin_right = 20
theme_override_constants/margin_bottom = 20
[node name="Label" type="Label" parent="Area2D/CanvasLayer/MarginContainer"]
2025-05-12 00:16:13 +02:00
visible = false
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 8
theme = SubResource("Theme_5ajrf")
2025-05-12 00:16:13 +02:00
text = "[E]"
horizontal_alignment = 2
vertical_alignment = 2
2025-05-12 00:16:13 +02:00
2025-12-12 13:46:32 +01:00
[node name="SelectionListener" type="Node" parent="."]
script = ExtResource("4_gj2nu")
_variableResources = Array[Object]([ExtResource("2_o1drf")])
[connection signal="NewEventPayload" from="SelectionListener" to="Area2D" method="InteractionAreaSelectionChanged"]