[gd_scene load_steps=6 format=3 uid="uid://x8xo5b1b3q41"]

[ext_resource type="Script" uid="uid://b2ytri51qn3r0" path="res://game.gd" id="1_feb5d"]
[ext_resource type="Script" uid="uid://bi7t6jxlfl0ln" path="res://interface/build_toggle.gd" id="2_7jktm"]
[ext_resource type="PackedScene" uid="uid://0d1d5e1u2fys" path="res://places/place_manager.tscn" id="2_fc0e3"]
[ext_resource type="Script" uid="uid://cgfibq8ku7tey" path="res://interface/game_cam.gd" id="3_7jktm"]
[ext_resource type="Script" uid="uid://bdf7ll8y2htic" path="res://interface/save_load.gd" id="5_7jktm"]

[node name="Game" type="Node"]
script = ExtResource("1_feb5d")

[node name="InterfaceLayer" type="CanvasLayer" parent="."]

[node name="BuildToggle" type="CheckButton" parent="InterfaceLayer"]
offset_left = 7.0
offset_top = 603.0
offset_right = 119.0
offset_bottom = 634.0
text = "Build A Room"
script = ExtResource("2_7jktm")

[node name="BuildButton" type="Button" parent="InterfaceLayer"]
offset_left = 172.0
offset_top = 604.0
offset_right = 243.0
offset_bottom = 635.0
text = "Confirm"

[node name="SaveButton" type="Button" parent="InterfaceLayer"]
offset_left = 995.0
offset_top = 609.0
offset_right = 1141.0
offset_bottom = 640.0
text = "Save Current Map
"

[node name="LoadButton" type="Button" parent="InterfaceLayer"]
offset_left = 996.0
offset_top = 573.0
offset_right = 1142.0
offset_bottom = 604.0
text = "Load Map"

[node name="GridButton" type="Button" parent="InterfaceLayer"]
offset_left = 18.0
offset_top = 568.0
offset_right = 89.0
offset_bottom = 599.0
text = "Init Grid"

[node name="DoorButton" type="Button" parent="InterfaceLayer"]
offset_left = 255.0
offset_top = 603.0
offset_right = 347.0
offset_bottom = 634.0
text = "Place Door"

[node name="WorkerButton" type="Button" parent="InterfaceLayer"]
offset_left = 358.0
offset_top = 604.0
offset_right = 468.0
offset_bottom = 635.0
text = "Place Worker"

[node name="GameCam" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.182236, 0.983255, 0, -0.983255, 0.182236, 24.5127, 23.2849, 20.9667)
size = 31.34
script = ExtResource("3_7jktm")

[node name="PlaceManager" parent="." instance=ExtResource("2_fc0e3")]

[node name="SaveLoad" type="Node" parent="."]
script = ExtResource("5_7jktm")

[connection signal="toggled" from="InterfaceLayer/BuildToggle" to="PlaceManager" method="_on_build_toggle"]
[connection signal="pressed" from="InterfaceLayer/BuildButton" to="PlaceManager" method="_on_confirm_button_pressed"]
[connection signal="pressed" from="InterfaceLayer/SaveButton" to="SaveLoad" method="_on_save_button_pressed"]
[connection signal="pressed" from="InterfaceLayer/LoadButton" to="SaveLoad" method="_on_load_button_pressed"]
[connection signal="pressed" from="InterfaceLayer/GridButton" to="PlaceManager" method="_on_init_grid_button_pressed"]
[connection signal="pressed" from="InterfaceLayer/DoorButton" to="PlaceManager" method="_on_door_button_pressed"]
[connection signal="pressed" from="InterfaceLayer/WorkerButton" to="PlaceManager" method="_on_worker_button_pressed"]
