[gd_scene format=3 uid="uid://bto4vblqk2inb"] [ext_resource type="Script" uid="uid://ch1qywbfphfqy" path="res://prefabs/tiles/buildings/home.gd" id="2_g5sxs"] [ext_resource type="Texture2D" uid="uid://1fs47aytjsp6" path="res://assets/2d_city/2dcitywithoutoutline/house1/1house0001.png" id="2_i0ot4"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6ic3m"] resource_local_to_scene = true content_margin_left = 10.0 content_margin_top = 10.0 content_margin_right = 10.0 content_margin_bottom = 10.0 bg_color = Color(0.6, 0.6, 0.6, 0) border_width_left = 5 border_width_top = 5 border_width_right = 5 border_width_bottom = 5 border_color = Color(1, 1, 1, 0) [sub_resource type="AtlasTexture" id="AtlasTexture_2y6xd"] atlas = ExtResource("2_i0ot4") region = Rect2(1008, 1564, 401, 364) [sub_resource type="LabelSettings" id="LabelSettings_26feb"] font_size = 24 outline_size = 4 outline_color = Color(0, 0, 0, 1) [sub_resource type="RectangleShape2D" id="RectangleShape2D_ja20k"] size = Vector2(109, 109) [node name="Home" type="Node2D" unique_id=1701297833] script = ExtResource("2_g5sxs") [node name="Border" type="PanelContainer" parent="." unique_id=1535918688] unique_name_in_owner = true custom_minimum_size = Vector2(100, 100) offset_left = -50.0 offset_top = -50.0 offset_right = 50.0 offset_bottom = 50.0 mouse_filter = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_6ic3m") [node name="Icon" type="TextureRect" parent="Border" unique_id=1316631070] texture_filter = 1 layout_mode = 2 mouse_filter = 2 texture = SubResource("AtlasTexture_2y6xd") expand_mode = 5 [node name="Label" type="Label" parent="Border/Icon" unique_id=134308374] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -42.5 offset_top = -17.0 offset_right = 42.5 offset_bottom = 17.0 grow_horizontal = 2 grow_vertical = 2 size_flags_horizontal = 4 text = "HOME" label_settings = SubResource("LabelSettings_26feb") horizontal_alignment = 1 vertical_alignment = 1 [node name="Amount" type="Label" parent="Border/Icon" unique_id=1728513182] visible = false layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -42.5 offset_top = -17.0 offset_right = 42.5 offset_bottom = 17.0 grow_horizontal = 2 grow_vertical = 2 size_flags_horizontal = 4 text = "SPAWN" label_settings = SubResource("LabelSettings_26feb") horizontal_alignment = 1 vertical_alignment = 1 [node name="BuildingArea" type="Area2D" parent="." unique_id=812662804] unique_name_in_owner = true monitoring = false [node name="CollisionShape2D" type="CollisionShape2D" parent="BuildingArea" unique_id=660262437] shape = SubResource("RectangleShape2D_ja20k") [node name="Size" type="Control" parent="." unique_id=1792197698] unique_name_in_owner = true layout_mode = 3 anchors_preset = 0 offset_left = -55.0 offset_top = -55.0 offset_right = 55.0 offset_bottom = 55.0 mouse_filter = 2 [connection signal="tree_entered" from="." to="." method="_on_tree_entered"] [connection signal="area_entered" from="BuildingArea" to="." method="_on_building_area_entered"]