project-dung/scenes/game_manager.tscn
2022-08-20 06:11:08 -04:00

92 lines
2.4 KiB
Plaintext

[gd_scene load_steps=4 format=2]
[ext_resource path="res://scripts/game_manager.gd" type="Script" id=1]
[ext_resource path="res://assets/tutorial/item_recipes.png" type="Texture" id=2]
[ext_resource path="res://assets/tutorial/machine_repair.png" type="Texture" id=3]
[node name="game_manager" type="CanvasLayer" groups=["game_manager"]]
pause_mode = 2
layer = 5
script = ExtResource( 1 )
[node name="UI" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
rect_pivot_offset = Vector2( 1024, 600 )
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="pause_menu" type="Panel" parent="UI"]
pause_mode = 2
unique_name_in_owner = true
anchor_right = 1.0
anchor_bottom = 1.0
rect_pivot_offset = Vector2( 989, 509 )
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="resume_button" type="Button" parent="UI/pause_menu"]
pause_mode = 2
unique_name_in_owner = true
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_top = -171.0
margin_right = 63.0
margin_bottom = -151.0
rect_scale = Vector2( 4, 4 )
rect_pivot_offset = Vector2( 30.7864, 9.2928 )
text = "RESUME"
icon_align = 1
expand_icon = true
[node name="machine_repair" type="TextureRect" parent="UI/pause_menu"]
anchor_left = 0.532812
anchor_top = 0.191667
anchor_right = 0.960938
anchor_bottom = 0.762037
margin_left = 6.10352e-05
rect_pivot_offset = Vector2( -754, 325 )
texture = ExtResource( 3 )
expand = true
stretch_mode = 1
__meta__ = {
"_edit_use_anchors_": true
}
[node name="item_recipe" type="TextureRect" parent="UI/pause_menu"]
anchor_left = 0.043
anchor_top = 0.27
anchor_right = 0.49
anchor_bottom = 0.718
margin_left = -0.560005
margin_top = 0.399994
margin_right = 0.199951
margin_bottom = -0.440063
rect_pivot_offset = Vector2( 1777, -206.5 )
texture = ExtResource( 2 )
expand = true
stretch_mode = 6
[node name="day_timer_text" type="Label" parent="UI"]
unique_name_in_owner = true
anchor_left = 1.0
anchor_right = 1.0
margin_left = -67.8719
margin_right = 39.1281
margin_bottom = 14.0
grow_horizontal = 0
rect_scale = Vector2( 5, 5 )
rect_pivot_offset = Vector2( 116.901, -0.362253 )
text = "Time Left: 00:20"
align = 2
uppercase = true
[node name="day_timer" type="Timer" parent="."]
pause_mode = 1
unique_name_in_owner = true
[connection signal="pressed" from="UI/pause_menu/resume_button" to="." method="_on_resume_button_pressed"]
[connection signal="timeout" from="day_timer" to="." method="_on_day_timer_timeout"]