176 lines
4.3 KiB
Plaintext
176 lines
4.3 KiB
Plaintext
[gd_scene load_steps=6 format=3 uid="uid://rd48gl8k5x34"]
|
|
|
|
[ext_resource type="Theme" uid="uid://bb8mjy6l7umui" path="res://themes/GameUI.tres" id="2_eun58"]
|
|
[ext_resource type="PackedScene" uid="uid://b1nm5h3yccr16" path="res://scenes/World.tscn" id="2_voimb"]
|
|
[ext_resource type="Script" path="res://scenes/GameUI.gd" id="4_2tdl1"]
|
|
|
|
[sub_resource type="World3D" id="World3D_5g233"]
|
|
|
|
[sub_resource type="ViewportTexture" id="ViewportTexture_2lmj8"]
|
|
viewport_path = NodePath("Viewport")
|
|
|
|
[node name="Game" type="Node"]
|
|
|
|
[node name="Viewport" type="SubViewport" parent="."]
|
|
own_world_3d = true
|
|
world_3d = SubResource("World3D_5g233")
|
|
|
|
[node name="World" parent="Viewport" instance=ExtResource("2_voimb")]
|
|
|
|
[node name="Panel" type="Panel" parent="."]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 6
|
|
size_flags_vertical = 6
|
|
|
|
[node name="WorldView" type="TextureRect" parent="Panel"]
|
|
texture_filter = 1
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
texture = SubResource("ViewportTexture_2lmj8")
|
|
stretch_mode = 6
|
|
|
|
[node name="TopBar" type="Panel" parent="."]
|
|
visible = false
|
|
custom_minimum_size = Vector2(0, 100)
|
|
anchors_preset = 10
|
|
anchor_right = 1.0
|
|
grow_horizontal = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
|
|
[node name="GameUI" type="Control" parent="."]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme = ExtResource("2_eun58")
|
|
script = ExtResource("4_2tdl1")
|
|
world_path = NodePath("../Viewport/World")
|
|
|
|
[node name="GameStartupWidgets" type="Panel" parent="GameUI"]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme = ExtResource("2_eun58")
|
|
|
|
[node name="Label" type="Label" parent="GameUI/GameStartupWidgets"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -27.5
|
|
offset_top = -11.5
|
|
offset_right = 27.5
|
|
offset_bottom = 11.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_font_sizes/font_size = 120
|
|
text = "Ready?"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="GameFinishedWidgets" type="Panel" parent="GameUI"]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme = ExtResource("2_eun58")
|
|
|
|
[node name="Label" type="Label" parent="GameUI/GameFinishedWidgets"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -27.5
|
|
offset_top = -11.5
|
|
offset_right = 27.5
|
|
offset_bottom = 11.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_font_sizes/font_size = 120
|
|
text = "Game Over!"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="GameRunningWidgets" type="Panel" parent="GameUI"]
|
|
visible = false
|
|
custom_minimum_size = Vector2(0, 80)
|
|
layout_mode = 1
|
|
anchors_preset = 10
|
|
anchor_right = 1.0
|
|
offset_bottom = 80.0
|
|
grow_horizontal = 2
|
|
|
|
[node name="Player1Widgets" type="VBoxContainer" parent="GameUI/GameRunningWidgets"]
|
|
layout_mode = 1
|
|
offset_right = 49.0
|
|
offset_bottom = 77.0
|
|
alignment = 1
|
|
|
|
[node name="NameLabel" type="Label" parent="GameUI/GameRunningWidgets/Player1Widgets"]
|
|
layout_mode = 2
|
|
text = "Red"
|
|
|
|
[node name="ScoreLabel" type="Label" parent="GameUI/GameRunningWidgets/Player1Widgets"]
|
|
layout_mode = 2
|
|
text = "0
|
|
"
|
|
|
|
[node name="Player2Widgets" type="VBoxContainer" parent="GameUI/GameRunningWidgets"]
|
|
layout_direction = 3
|
|
layout_mode = 1
|
|
offset_right = 49.0
|
|
offset_bottom = 77.0
|
|
size_flags_horizontal = 8
|
|
alignment = 1
|
|
|
|
[node name="NameLabel" type="Label" parent="GameUI/GameRunningWidgets/Player2Widgets"]
|
|
layout_mode = 2
|
|
text = "Blue"
|
|
|
|
[node name="ScoreLabel" type="Label" parent="GameUI/GameRunningWidgets/Player2Widgets"]
|
|
layout_mode = 2
|
|
text = "0
|
|
"
|
|
|
|
[node name="TimeWidgets" type="VBoxContainer" parent="GameUI/GameRunningWidgets"]
|
|
layout_mode = 1
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -48.0
|
|
offset_right = 48.0
|
|
offset_bottom = 70.0
|
|
grow_horizontal = 2
|
|
|
|
[node name="Label" type="Label" parent="GameUI/GameRunningWidgets/TimeWidgets"]
|
|
layout_mode = 2
|
|
text = "Time Left"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="TimeLeftLabel" type="Label" parent="GameUI/GameRunningWidgets/TimeWidgets"]
|
|
layout_mode = 2
|
|
text = "00:30:00"
|
|
horizontal_alignment = 1
|