[gd_scene load_steps=9 format=3 uid="uid://b1bahdquscsym"] [ext_resource type="Script" path="res://scripts/Main.gd" id="1_ysxum"] [ext_resource type="Script" path="res://scripts/ChunkHandler.gd" id="2_6cequ"] [ext_resource type="Script" path="res://scripts/Control.gd" id="3_1t1c8"] [ext_resource type="PackedScene" uid="uid://2we3txfr812u" path="res://scenes/Camera_zoom_2d.tscn" id="4_rx82t"] [ext_resource type="Script" path="res://scripts/EntityPlacer.gd" id="5_8jju5"] [ext_resource type="Script" path="res://scripts/Minimap.gd" id="5_rg28x"] [ext_resource type="Script" path="res://scripts/CameraMarker.gd" id="7_6krn1"] [ext_resource type="Script" path="res://scripts/MapBackground.gd" id="8_ron2j"] [node name="Main" type="Node2D"] script = ExtResource("1_ysxum") [node name="ChunkHandler" type="Node2D" parent="."] script = ExtResource("2_6cequ") [node name="EntityPlacer" type="Control" parent="."] layout_mode = 3 anchors_preset = 0 offset_right = 40.0 offset_bottom = 40.0 script = ExtResource("5_8jju5") [node name="CameraZoom2D" parent="." instance=ExtResource("4_rx82t")] position = Vector2(1272, 720) ignore_rotation = false limit_left = 0 limit_top = 0 limit_right = 65536 limit_bottom = 65536 limit_smoothed = true rotation_smoothing_enabled = true editor_draw_limits = true [node name="MapBackground" type="Sprite2D" parent="."] z_index = -1 centered = false script = ExtResource("8_ron2j") [node name="UILayer" type="CanvasLayer" parent="."] [node name="Control" type="Control" parent="UILayer"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 1 script = ExtResource("3_1t1c8") metadata/_edit_use_anchors_ = true [node name="ConstructionPanel" type="Panel" parent="UILayer/Control"] custom_minimum_size = Vector2(500, 100) layout_mode = 1 anchors_preset = 5 anchor_left = 0.5 anchor_right = 0.5 offset_left = -250.0 offset_right = 250.0 offset_bottom = 100.0 grow_horizontal = 2 [node name="button_residental" type="Button" parent="UILayer/Control/ConstructionPanel"] layout_mode = 0 offset_right = 8.0 offset_bottom = 8.0 [node name="button_commercial" type="Button" parent="UILayer/Control/ConstructionPanel"] layout_mode = 0 offset_right = 8.0 offset_bottom = 8.0 [node name="button_industrial" type="Button" parent="UILayer/Control/ConstructionPanel"] layout_mode = 0 offset_right = 8.0 offset_bottom = 8.0 [node name="button_roads" type="Button" parent="UILayer/Control/ConstructionPanel"] layout_mode = 0 offset_right = 8.0 offset_bottom = 8.0 [node name="button_demolish" type="Button" parent="UILayer/Control/ConstructionPanel"] layout_mode = 0 offset_right = 8.0 offset_bottom = 8.0 [node name="button_services" type="Button" parent="UILayer/Control/ConstructionPanel"] layout_mode = 0 offset_right = 8.0 offset_bottom = 8.0 [node name="button_social" type="Button" parent="UILayer/Control/ConstructionPanel"] layout_mode = 0 offset_right = 8.0 offset_bottom = 8.0 [node name="DebugContainer" type="GridContainer" parent="UILayer/Control"] layout_mode = 1 anchors_preset = 1 anchor_left = 1.0 anchor_right = 1.0 offset_left = -264.0 offset_top = 24.0 offset_bottom = 424.0 grow_horizontal = 0 [node name="DebugInfo" type="Label" parent="UILayer/Control/DebugContainer"] layout_mode = 2 [node name="Minimap" type="Panel" parent="UILayer/Control"] clip_contents = true custom_minimum_size = Vector2(512, 512) layout_mode = 1 anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -512.0 offset_top = -512.0 grow_horizontal = 0 grow_vertical = 0 mouse_filter = 1 script = ExtResource("5_rg28x") [node name="CameraMarker" type="Sprite2D" parent="UILayer/Control/Minimap"] z_index = 1 position = Vector2(-32, 0) centered = false script = ExtResource("7_6krn1") [node name="MinimapSprite" type="Sprite2D" parent="UILayer/Control/Minimap"] texture_repeat = 1 centered = false [connection signal="set_camera_position" from="." to="CameraZoom2D" method="_on_set_camera_position"] [connection signal="worldgen_ready" from="." to="ChunkHandler" method="_on_main_worldgen_ready"] [connection signal="worldgen_ready" from="." to="CameraZoom2D" method="_on_main_worldgen_ready"] [connection signal="worldgen_ready" from="." to="UILayer/Control/Minimap" method="_on_main_worldgen_ready"] [connection signal="worldgen_ready" from="." to="UILayer/Control/Minimap/CameraMarker" method="_on_main_worldgen_ready"] [connection signal="chunk_stats" from="ChunkHandler" to="UILayer/Control" method="_on_chunk_handler_chunk_stats"] [connection signal="camera_rotation_changed" from="CameraZoom2D" to="UILayer/Control/Minimap/CameraMarker" method="_on_camera_zoom_2d_camera_rotation_changed"] [connection signal="camera_zoom_changed" from="CameraZoom2D" to="UILayer/Control/Minimap/CameraMarker" method="_on_camera_zoom_2d_camera_zoom_changed"] [connection signal="pressed" from="UILayer/Control/ConstructionPanel/button_residental" to="UILayer/Control" method="_on_button_residental_pressed"] [connection signal="pressed" from="UILayer/Control/ConstructionPanel/button_commercial" to="UILayer/Control" method="_on_button_commercial_pressed"] [connection signal="pressed" from="UILayer/Control/ConstructionPanel/button_industrial" to="UILayer/Control" method="_on_button_industrial_pressed"] [connection signal="pressed" from="UILayer/Control/ConstructionPanel/button_roads" to="UILayer/Control" method="_on_button_roads_pressed"] [connection signal="pressed" from="UILayer/Control/ConstructionPanel/button_demolish" to="UILayer/Control" method="_on_button_demolish_pressed"] [connection signal="pressed" from="UILayer/Control/ConstructionPanel/button_services" to="UILayer/Control" method="_on_button_services_pressed"] [connection signal="pressed" from="UILayer/Control/ConstructionPanel/button_social" to="UILayer/Control" method="_on_button_social_pressed"] [connection signal="mouse_entered" from="UILayer/Control/Minimap" to="UILayer/Control/Minimap" method="_on_mouse_entered"] [connection signal="mouse_exited" from="UILayer/Control/Minimap" to="UILayer/Control/Minimap" method="_on_mouse_exited"] [connection signal="set_camera_position" from="UILayer/Control/Minimap" to="CameraZoom2D" method="_on_set_camera_position"] [connection signal="set_map_background_texture" from="UILayer/Control/Minimap" to="MapBackground" method="_on_minimap_set_map_background_texture"]