64 lines
3.3 KiB
Plaintext
64 lines
3.3 KiB
Plaintext
[gd_scene load_steps=12 format=2]
|
|
|
|
[ext_resource path="res://nodes/grid.tscn" type="PackedScene" id=1]
|
|
[ext_resource path="res://nodes/grid_cursor.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://nodes/ui/debug_ui.tscn" type="PackedScene" id=3]
|
|
[ext_resource path="res://nodes/clock.tscn" type="PackedScene" id=4]
|
|
[ext_resource path="res://nodes/interaction_modes/interaction_mode.tscn" type="PackedScene" id=5]
|
|
[ext_resource path="res://nodes/ui/build_mode_ui.tscn" type="PackedScene" id=6]
|
|
[ext_resource path="res://nodes/interaction_modes/build_mode.tscn" type="PackedScene" id=7]
|
|
[ext_resource path="res://resources/tiles/tiles.tres" type="Resource" id=8]
|
|
[ext_resource path="res://nodes/ui/mode_selection_ui.tscn" type="PackedScene" id=9]
|
|
[ext_resource path="res://nodes/overlays.tscn" type="PackedScene" id=10]
|
|
|
|
[sub_resource type="Curve" id=1]
|
|
_data = [ Vector2( 0, 0 ), 0.0, 5.0, 0, 0, Vector2( 0.5, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), -4.0, 0.0, 0, 0 ]
|
|
|
|
[node name="Root" type="Node"]
|
|
|
|
[node name="Clock" parent="." instance=ExtResource( 4 )]
|
|
_autoTick = true
|
|
|
|
[node name="World Grid" parent="." instance=ExtResource( 1 )]
|
|
DiffusionCoefficient = 0.1
|
|
_tileGridResource = ExtResource( 8 )
|
|
|
|
[node name="Cursor" parent="." instance=ExtResource( 2 )]
|
|
Grid = NodePath("../World Grid")
|
|
_pulseShape = SubResource( 1 )
|
|
|
|
[node name="Interaction Modes" parent="." instance=ExtResource( 5 )]
|
|
_buildModePath = NodePath("Build Mode")
|
|
|
|
[node name="Build Mode" parent="Interaction Modes" instance=ExtResource( 7 )]
|
|
_gridPath = NodePath("../../World Grid")
|
|
_cursorPath = NodePath("../../Cursor")
|
|
|
|
[node name="Overlays" parent="." instance=ExtResource( 10 )]
|
|
_worldGridPath = NodePath("../World Grid")
|
|
|
|
[node name="UI" type="Control" parent="."]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
mouse_filter = 2
|
|
|
|
[node name="Debug" parent="UI" instance=ExtResource( 3 )]
|
|
|
|
[node name="Build Mode" parent="UI" instance=ExtResource( 6 )]
|
|
_buildModePath = NodePath("../../Interaction Modes/Build Mode")
|
|
|
|
[node name="Mode Selection" parent="UI" instance=ExtResource( 9 )]
|
|
|
|
[connection signal="OnPauseChanged" from="Clock" to="UI/Debug" method="_on_Clock_OnPauseChanged"]
|
|
[connection signal="OnTick" from="Clock" to="World Grid" method="_on_Clock_OnTick"]
|
|
[connection signal="OnTick" from="Clock" to="UI/Debug" method="_on_Clock_OnTick"]
|
|
[connection signal="OnInteractionModeChanged" from="Interaction Modes" to="Cursor" method="_on_Interaction_Mode_OnInteractionModeChanged"]
|
|
[connection signal="OnInteractionModeChanged" from="Interaction Modes" to="UI/Debug" method="_on_Interaction_Mode_OnInteractionModeChanged"]
|
|
[connection signal="OnModeEntered" from="Interaction Modes/Build Mode" to="Interaction Modes" method="_on_Build_Mode_OnModeEntered"]
|
|
[connection signal="OnModeEntered" from="Interaction Modes/Build Mode" to="UI/Mode Selection" method="EnableBuildMode"]
|
|
[connection signal="OnModeExited" from="Interaction Modes/Build Mode" to="Interaction Modes" method="_on_Build_Mode_OnModeExited"]
|
|
[connection signal="SelectedTileTypeChanged" from="Interaction Modes/Build Mode" to="UI/Build Mode" method="UpdateButtonToggleState"]
|
|
[connection signal="OnExit" from="UI/Build Mode" to="Interaction Modes" method="Reset"]
|
|
[connection signal="OnExit" from="UI/Build Mode" to="UI/Mode Selection" method="Enable"]
|
|
[connection signal="BuildModeEnabled" from="UI/Mode Selection" to="Interaction Modes/Build Mode" method="Enable"]
|