project-dung/scenes/game_manager.tscn

197 lines
5.2 KiB
Plaintext

[gd_scene load_steps=13 format=2]
[ext_resource path="res://scripts/game_manager.gd" type="Script" id=1]
[ext_resource path="res://assets/UI/Menu_Recipes.png" type="Texture" id=2]
[ext_resource path="res://assets/UI/Menu_Map.png" type="Texture" id=3]
[ext_resource path="res://assets/Fonts/AlphaProta-Wy7VE.ttf" type="DynamicFontData" id=4]
[ext_resource path="res://assets/UI/Timers.png" type="Texture" id=5]
[sub_resource type="Gradient" id=22]
offsets = PoolRealArray( 0, 0.776119, 1 )
colors = PoolColorArray( 0, 0, 0, 1, 0, 0, 0, 0.429105, 0, 0, 0, 0 )
[sub_resource type="GradientTexture2D" id=21]
gradient = SubResource( 22 )
fill_to = Vector2( 0, 1 )
[sub_resource type="StyleBoxFlat" id=23]
bg_color = Color( 0, 0, 0, 0.843137 )
[sub_resource type="DynamicFont" id=2]
size = 50
font_data = ExtResource( 4 )
[sub_resource type="DynamicFont" id=1]
size = 55
font_data = ExtResource( 4 )
[sub_resource type="DynamicFont" id=3]
size = 34
font_data = ExtResource( 4 )
[sub_resource type="SphereShape" id=24]
radius = 6.9
[node name="game_manager" type="CanvasLayer" groups=["game_manager"]]
pause_mode = 2
layer = 3
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="TextureRect" type="TextureRect" parent="UI"]
anchor_left = 0.5
anchor_right = 1.0
anchor_bottom = 0.117593
mouse_filter = 2
texture = SubResource( 21 )
expand = true
stretch_mode = 1
__meta__ = {
"_edit_use_anchors_": true
}
[node name="pause_menu" type="Panel" parent="UI"]
pause_mode = 2
unique_name_in_owner = true
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
rect_pivot_offset = Vector2( 989, 509 )
custom_styles/panel = SubResource( 23 )
[node name="map" type="TextureRect" parent="UI/pause_menu"]
anchor_left = 0.418229
anchor_top = 0.135185
anchor_right = 0.947917
anchor_bottom = 0.840741
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="recipes" type="TextureRect" parent="UI/pause_menu"]
anchor_left = 0.0994792
anchor_top = 0.0611111
anchor_right = 0.380209
anchor_bottom = 0.927778
texture = ExtResource( 2 )
expand = true
__meta__ = {
"_edit_use_anchors_": true
}
[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_left = -35.0
margin_top = -143.0
margin_right = 328.0
margin_bottom = -57.0
rect_pivot_offset = Vector2( 30.7864, 9.2928 )
custom_fonts/font = SubResource( 2 )
text = "RESUME"
icon_align = 1
expand_icon = true
[node name="main_menu_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_left = 404.0
margin_top = -143.0
margin_right = 767.0
margin_bottom = -57.0
rect_pivot_offset = Vector2( 30.7864, 9.2928 )
custom_fonts/font = SubResource( 2 )
text = "MAIN MENU"
icon_align = 1
expand_icon = true
[node name="HUD" type="TextureRect" parent="UI"]
anchor_left = 0.610937
anchor_top = -0.00740741
anchor_right = 1.0
anchor_bottom = 0.126852
texture = ExtResource( 5 )
expand = true
__meta__ = {
"_edit_use_anchors_": true
}
[node name="day_timer_text" type="Label" parent="UI/HUD"]
unique_name_in_owner = true
anchor_left = 0.73494
anchor_top = 0.0551724
anchor_right = 1.0
anchor_bottom = 0.57931
grow_horizontal = 0
rect_pivot_offset = Vector2( 116.901, -0.362253 )
custom_colors/font_color = Color( 0.0235294, 0.792157, 0, 1 )
custom_colors/font_outline_modulate = Color( 0, 0, 0, 1 )
custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )
custom_constants/shadow_offset_x = -2
custom_constants/shadow_offset_y = 2
custom_fonts/font = SubResource( 1 )
text = "00:20"
align = 1
valign = 1
uppercase = true
__meta__ = {
"_edit_use_anchors_": true
}
[node name="current_coins_text" type="Label" parent="UI/HUD"]
unique_name_in_owner = true
anchor_left = 0.874163
anchor_top = 0.655172
anchor_right = 0.973226
anchor_bottom = 0.896552
grow_horizontal = 0
rect_pivot_offset = Vector2( 116.901, -0.362253 )
custom_colors/font_color = Color( 0.0235294, 0.792157, 0, 1 )
custom_colors/font_outline_modulate = Color( 0, 0, 0, 1 )
custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )
custom_constants/shadow_offset_x = -2
custom_constants/shadow_offset_y = 2
custom_fonts/font = SubResource( 3 )
text = "0"
align = 1
valign = 1
uppercase = true
__meta__ = {
"_edit_use_anchors_": true
}
[node name="day_timer" type="Timer" parent="."]
pause_mode = 1
unique_name_in_owner = true
[node name="RTGArea" type="Area" parent="."]
collision_mask = 3
[node name="RTGTrigger" type="CollisionShape" parent="RTGArea"]
unique_name_in_owner = true
shape = SubResource( 24 )
[connection signal="pressed" from="UI/pause_menu/resume_button" to="." method="_on_resume_button_pressed"]
[connection signal="pressed" from="UI/pause_menu/main_menu_button" to="." method="_on_main_menu_button_pressed"]
[connection signal="timeout" from="day_timer" to="." method="_on_day_timer_timeout"]
[connection signal="area_entered" from="RTGArea" to="." method="_on_Area_area_entered"]