Basic UI Logic and game state
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=12 format=3 uid="uid://deah8x3tnm045"]
|
||||
[gd_scene load_steps=13 format=3 uid="uid://deah8x3tnm045"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b3ecco3iykmlc" path="res://assets/textures/overcast_soil_puresky_4k.hdr" id="1_4mr0e"]
|
||||
[ext_resource type="PackedScene" uid="uid://dwvmna8qc0vb4" path="res://core/drone/drone.tscn" id="2_orkyq"]
|
||||
@@ -7,6 +7,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://c7ldlo5qe26tx" path="res://assets/textures/drone_screenshot.png" id="4_0ftx7"]
|
||||
[ext_resource type="Script" path="res://core/scripts/main_menu.gd" id="4_bknjq"]
|
||||
[ext_resource type="PackedScene" uid="uid://ctnwdiavrytwe" path="res://core/levels/contruction_site.tscn" id="4_oqdxa"]
|
||||
[ext_resource type="Script" path="res://core/scripts/pause_menu.gd" id="7_b8wfm"]
|
||||
|
||||
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_qks7v"]
|
||||
panorama = ExtResource("1_4mr0e")
|
||||
@@ -60,6 +61,7 @@ far = 8000.0
|
||||
script = ExtResource("3_sec6q")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
process_mode = 3
|
||||
layer = 2
|
||||
|
||||
[node name="MainMenu" type="Control" parent="CanvasLayer" node_paths=PackedStringArray("start_button", "quit_button")]
|
||||
@@ -117,4 +119,65 @@ focus_neighbor_top = NodePath("../StartButton")
|
||||
theme_override_font_sizes/font_size = 50
|
||||
text = "QUIT"
|
||||
|
||||
[node name="PauseMenu" type="Control" parent="CanvasLayer" node_paths=PackedStringArray("resume_button", "quit_button")]
|
||||
visible = false
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("7_b8wfm")
|
||||
resume_button = NodePath("HBoxContainer/VBoxContainer/MarginContainer2/VBoxContainer/ResumeButton")
|
||||
quit_button = NodePath("HBoxContainer/VBoxContainer/MarginContainer2/VBoxContainer/QuitButton")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/PauseMenu"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 0.772549)
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/PauseMenu"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/PauseMenu/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/PauseMenu/HBoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_top = 60
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/PauseMenu/HBoxContainer/VBoxContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 60
|
||||
text = "PAUSED"
|
||||
|
||||
[node name="MarginContainer2" type="MarginContainer" parent="CanvasLayer/PauseMenu/HBoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_top = 120
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/PauseMenu/HBoxContainer/VBoxContainer/MarginContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 25
|
||||
alignment = 1
|
||||
|
||||
[node name="ResumeButton" type="Button" parent="CanvasLayer/PauseMenu/HBoxContainer/VBoxContainer/MarginContainer2/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "RESUME"
|
||||
|
||||
[node name="QuitButton" type="Button" parent="CanvasLayer/PauseMenu/HBoxContainer/VBoxContainer/MarginContainer2/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "QUIT"
|
||||
|
||||
[node name="TestLevel" parent="." instance=ExtResource("4_oqdxa")]
|
||||
|
||||
Reference in New Issue
Block a user