The_Dark_Side_of_Earth/main_menu/main_menu.tscn

106 lines
3.6 KiB
Text

[gd_scene load_steps=9 format=3 uid="uid://dpkr8yoobtej6"]
[ext_resource type="Script" uid="uid://bg4qx85we014d" path="res://main_menu/main_menu.gd" id="1_bws42"]
[ext_resource type="PackedScene" uid="uid://jjoyj1ldafkf" path="res://world/earth.tscn" id="1_oa53l"]
[ext_resource type="Script" uid="uid://colvx6wq0e8n7" path="res://world/building_generator.gd" id="2_d3a7t"]
[ext_resource type="Theme" uid="uid://dwlus1hjwtch4" path="res://large_theme.tres" id="3_3shxk"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_d3a7t"]
bg_color = Color(0, 0.7529412, 0, 1)
draw_center = false
corner_radius_top_left = 350
corner_radius_top_right = 350
corner_radius_bottom_right = 350
corner_radius_bottom_left = 350
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3f7m4"]
draw_center = false
border_color = Color(0.8, 0.8, 0.8, 0)
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_bws42"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bws42"]
bg_color = Color(0, 0, 0, 1)
corner_radius_top_left = 20
corner_radius_top_right = 20
corner_radius_bottom_right = 20
corner_radius_bottom_left = 20
[node name="main" type="Node"]
script = ExtResource("1_bws42")
[node name="Earth" parent="." instance=ExtResource("1_oa53l")]
unique_name_in_owner = true
[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2(0.12, 0.12)
[node name="Building Generator" type="Node" parent="."]
script = ExtResource("2_d3a7t")
initial_buildings = 250
initial_spawn_protection = false
[node name="Timer" type="Timer" parent="Building Generator"]
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="Control" type="Control" parent="CanvasLayer"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="PanelContainer" type="PanelContainer" parent="CanvasLayer/Control"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -350.0
offset_top = -350.0
offset_right = 350.0
offset_bottom = 350.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("3_3shxk")
theme_override_styles/panel = SubResource("StyleBoxFlat_d3a7t")
[node name="ButtonStart" type="Button" parent="CanvasLayer/Control/PanelContainer"]
layout_mode = 2
theme_type_variation = &"FlatButton"
theme_override_styles/pressed = SubResource("StyleBoxFlat_3f7m4")
theme_override_styles/focus = SubResource("StyleBoxEmpty_bws42")
text = "PLAY"
[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/Control"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -400.0
offset_top = -100.0
grow_horizontal = 0
grow_vertical = 0
theme_override_constants/margin_left = 50
theme_override_constants/margin_top = 50
theme_override_constants/margin_right = 50
theme_override_constants/margin_bottom = 50
[node name="PanelContainer" type="PanelContainer" parent="CanvasLayer/Control/MarginContainer"]
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_bws42")
[node name="Button_Quit" type="Button" parent="CanvasLayer/Control/MarginContainer/PanelContainer"]
custom_minimum_size = Vector2(400, 100)
layout_mode = 2
theme_type_variation = &"FlatButton"
text = "Quit Forever"
[connection signal="timeout" from="Building Generator/Timer" to="Building Generator" method="_on_timer_timeout"]
[connection signal="pressed" from="CanvasLayer/Control/PanelContainer/ButtonStart" to="." method="_on_button_start_pressed"]
[connection signal="pressed" from="CanvasLayer/Control/MarginContainer/PanelContainer/Button_Quit" to="." method="_on_button_quit_pressed"]