[gd_scene load_steps=6 format=3 uid="uid://cn41xqc3lwaxy"] [ext_resource type="Script" path="res://scripts/contract.gd" id="1_esxg1"] [ext_resource type="Texture2D" uid="uid://bnqe06njx2agc" path="res://sprites/contract.png" id="1_jwp1o"] [ext_resource type="Theme" uid="uid://d0ir0t347wqv7" path="res://etc/default_theme.tres" id="1_m2twt"] [ext_resource type="PackedScene" uid="uid://dpwqurhly8osd" path="res://scenes/interactible_manager.tscn" id="3_khqae"] [sub_resource type="CircleShape2D" id="CircleShape2D_mxuxo"] radius = 217.993 [node name="Contract" type="Area2D" node_paths=PackedStringArray("DestinationLabel", "InteractibleManager")] script = ExtResource("1_esxg1") Destination = "20th Burnaby" DestinationLabel = NodePath("Control/LabelPanel/Label") InteractibleManager = NodePath("InteractibleManager") [node name="Control" type="Control" parent="."] layout_mode = 3 anchors_preset = 0 offset_top = -308.485 offset_right = 40.0 offset_bottom = -268.485 [node name="LabelPanel" type="PanelContainer" parent="Control"] z_index = 10 layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme = ExtResource("1_m2twt") [node name="Label" type="Label" parent="Control/LabelPanel"] layout_mode = 2 theme = ExtResource("1_m2twt") text = "20th Burnaby" horizontal_alignment = 1 vertical_alignment = 1 uppercase = true metadata/_edit_lock_ = true [node name="Sprite2D" type="Sprite2D" parent="."] texture = ExtResource("1_jwp1o") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("CircleShape2D_mxuxo") [node name="InteractibleManager" parent="." node_paths=PackedStringArray("ItemShown") instance=ExtResource("3_khqae")] ItemShown = NodePath("../Control/LabelPanel") [connection signal="body_entered" from="." to="InteractibleManager" method="_on_body_entered"] [connection signal="body_exited" from="." to="InteractibleManager" method="_on_body_exited"]