extract score overlay to prefab
This commit is contained in:
parent
3dd272eee8
commit
b91678f5b2
|
@ -15,5 +15,5 @@ settings_volume_sound,Sound Volume,Sound Lautstärke
|
||||||
settings_language,Game Language,Spielsprache
|
settings_language,Game Language,Spielsprache
|
||||||
game_paused,Game paused,Spiel pausiert
|
game_paused,Game paused,Spiel pausiert
|
||||||
resume_game,Resume game,Weiterspielen
|
resume_game,Resume game,Weiterspielen
|
||||||
game_over,Show over,Show vorbei
|
game_over,That's a wrap!,Das war's!
|
||||||
your_score,Your score:,Deine Punkte:
|
your_score,Your score:,Deine Punkte:
|
|
Binary file not shown.
Binary file not shown.
|
@ -8,126 +8,126 @@
|
||||||
position = Vector2(240, 232)
|
position = Vector2(240, 232)
|
||||||
script = ExtResource("1_y7wyj")
|
script = ExtResource("1_y7wyj")
|
||||||
|
|
||||||
[node name="Tables" type="Node" parent="."]
|
[node name="Tables" type="Node2D" parent="."]
|
||||||
|
|
||||||
[node name="Table_1" type="Sprite2D" parent="Tables"]
|
[node name="Table_1" type="Sprite2D" parent="Tables"]
|
||||||
z_index = 35
|
z_index = 35
|
||||||
position = Vector2(170, 199)
|
position = Vector2(-70, -33)
|
||||||
scale = Vector2(0.25, 0.25)
|
scale = Vector2(0.25, 0.25)
|
||||||
texture = ExtResource("2_bax5s")
|
texture = ExtResource("2_bax5s")
|
||||||
|
|
||||||
[node name="Table_2" type="Sprite2D" parent="Tables"]
|
[node name="Table_2" type="Sprite2D" parent="Tables"]
|
||||||
z_index = 25
|
z_index = 25
|
||||||
position = Vector2(359, 138)
|
position = Vector2(119, -94)
|
||||||
scale = Vector2(0.25, 0.25)
|
scale = Vector2(0.25, 0.25)
|
||||||
texture = ExtResource("2_bax5s")
|
texture = ExtResource("2_bax5s")
|
||||||
|
|
||||||
[node name="Table_3" type="Sprite2D" parent="Tables"]
|
[node name="Table_3" type="Sprite2D" parent="Tables"]
|
||||||
z_index = 15
|
z_index = 15
|
||||||
position = Vector2(203, 84)
|
position = Vector2(-37, -148)
|
||||||
scale = Vector2(0.25, 0.25)
|
scale = Vector2(0.25, 0.25)
|
||||||
texture = ExtResource("2_bax5s")
|
texture = ExtResource("2_bax5s")
|
||||||
|
|
||||||
[node name="Table_4" type="Sprite2D" parent="Tables"]
|
[node name="Table_4" type="Sprite2D" parent="Tables"]
|
||||||
z_index = 45
|
z_index = 45
|
||||||
position = Vector2(319, 230)
|
position = Vector2(79, -2)
|
||||||
scale = Vector2(0.25, 0.25)
|
scale = Vector2(0.25, 0.25)
|
||||||
texture = ExtResource("2_bax5s")
|
texture = ExtResource("2_bax5s")
|
||||||
|
|
||||||
[node name="Seats" type="Node" parent="."]
|
[node name="Seats" type="Node2D" parent="."]
|
||||||
|
|
||||||
[node name="Seat_5" type="Node2D" parent="Seats"]
|
[node name="Seat_5" type="Node2D" parent="Seats"]
|
||||||
z_index = 10
|
z_index = 10
|
||||||
position = Vector2(205, 35)
|
position = Vector2(-35, -197)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_5" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_5" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_6" type="Node2D" parent="Seats"]
|
[node name="Seat_6" type="Node2D" parent="Seats"]
|
||||||
z_index = 12
|
z_index = 12
|
||||||
position = Vector2(159, 79)
|
position = Vector2(-81, -153)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_6" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_6" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_7" type="Node2D" parent="Seats"]
|
[node name="Seat_7" type="Node2D" parent="Seats"]
|
||||||
z_index = 13
|
z_index = 13
|
||||||
position = Vector2(249, 81)
|
position = Vector2(9, -151)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_7" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_7" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_8" type="Node2D" parent="Seats"]
|
[node name="Seat_8" type="Node2D" parent="Seats"]
|
||||||
z_index = 17
|
z_index = 17
|
||||||
position = Vector2(204, 130)
|
position = Vector2(-36, -102)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_8" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_8" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_9" type="Node2D" parent="Seats"]
|
[node name="Seat_9" type="Node2D" parent="Seats"]
|
||||||
z_index = 20
|
z_index = 20
|
||||||
position = Vector2(359, 94)
|
position = Vector2(119, -138)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_9" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_9" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_10" type="Node2D" parent="Seats"]
|
[node name="Seat_10" type="Node2D" parent="Seats"]
|
||||||
z_index = 22
|
z_index = 22
|
||||||
position = Vector2(311, 137)
|
position = Vector2(71, -95)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_10" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_10" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_11" type="Node2D" parent="Seats"]
|
[node name="Seat_11" type="Node2D" parent="Seats"]
|
||||||
z_index = 23
|
z_index = 23
|
||||||
position = Vector2(401, 133)
|
position = Vector2(161, -99)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_11" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_11" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_12" type="Node2D" parent="Seats"]
|
[node name="Seat_12" type="Node2D" parent="Seats"]
|
||||||
z_index = 26
|
z_index = 26
|
||||||
position = Vector2(359, 184)
|
position = Vector2(119, -48)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_12" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_12" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_1" type="Node2D" parent="Seats"]
|
[node name="Seat_1" type="Node2D" parent="Seats"]
|
||||||
z_index = 30
|
z_index = 30
|
||||||
position = Vector2(168, 156)
|
position = Vector2(-72, -76)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_1" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_1" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_2" type="Node2D" parent="Seats"]
|
[node name="Seat_2" type="Node2D" parent="Seats"]
|
||||||
z_index = 32
|
z_index = 32
|
||||||
position = Vector2(122, 197)
|
position = Vector2(-118, -35)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_2" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_2" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_3" type="Node2D" parent="Seats"]
|
[node name="Seat_3" type="Node2D" parent="Seats"]
|
||||||
z_index = 33
|
z_index = 33
|
||||||
position = Vector2(217, 199)
|
position = Vector2(-23, -33)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_3" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_3" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_4" type="Node2D" parent="Seats"]
|
[node name="Seat_4" type="Node2D" parent="Seats"]
|
||||||
z_index = 36
|
z_index = 36
|
||||||
position = Vector2(166, 244)
|
position = Vector2(-74, 12)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_4" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_4" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_13" type="Node2D" parent="Seats"]
|
[node name="Seat_13" type="Node2D" parent="Seats"]
|
||||||
z_index = 40
|
z_index = 40
|
||||||
position = Vector2(315, 187)
|
position = Vector2(75, -45)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_13" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_13" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_14" type="Node2D" parent="Seats"]
|
[node name="Seat_14" type="Node2D" parent="Seats"]
|
||||||
z_index = 42
|
z_index = 42
|
||||||
position = Vector2(276, 232)
|
position = Vector2(36, 0)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_14" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_14" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_15" type="Node2D" parent="Seats"]
|
[node name="Seat_15" type="Node2D" parent="Seats"]
|
||||||
z_index = 43
|
z_index = 43
|
||||||
position = Vector2(366, 231)
|
position = Vector2(126, -1)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_15" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_15" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
||||||
[node name="Seat_16" type="Node2D" parent="Seats"]
|
[node name="Seat_16" type="Node2D" parent="Seats"]
|
||||||
z_index = 46
|
z_index = 46
|
||||||
position = Vector2(320, 274)
|
position = Vector2(80, 42)
|
||||||
|
|
||||||
[node name="Chair" parent="Seats/Seat_16" instance=ExtResource("3_y4hpm")]
|
[node name="Chair" parent="Seats/Seat_16" instance=ExtResource("3_y4hpm")]
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
[gd_scene load_steps=6 format=3 uid="uid://cik30de5gaaah"]
|
[gd_scene load_steps=7 format=3 uid="uid://cik30de5gaaah"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scenes/ingame_scene.gd" id="1_objyc"]
|
[ext_resource type="Script" path="res://scenes/ingame_scene.gd" id="1_objyc"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bkk87o2ooo6at" path="res://ui/overlays/fade_overlay.tscn" id="1_y6ebv"]
|
[ext_resource type="PackedScene" uid="uid://bkk87o2ooo6at" path="res://ui/overlays/fade_overlay.tscn" id="1_y6ebv"]
|
||||||
[ext_resource type="PackedScene" uid="uid://jyv4g54adkmo" path="res://ui/overlays/pause_overlay.tscn" id="3_8o178"]
|
[ext_resource type="PackedScene" uid="uid://jyv4g54adkmo" path="res://ui/overlays/pause_overlay.tscn" id="3_8o178"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://b0xc4jjyahlvk" path="res://scenes/score_overlay.tscn" id="3_yvlw3"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bx6htkgx23t8v" path="res://scenes/crowd/crowd.tscn" id="4_aeh13"]
|
[ext_resource type="PackedScene" uid="uid://bx6htkgx23t8v" path="res://scenes/crowd/crowd.tscn" id="4_aeh13"]
|
||||||
[ext_resource type="PackedScene" uid="uid://cicyfp5xjvvu4" path="res://scenes/stage.tscn" id="5_borcq"]
|
[ext_resource type="PackedScene" uid="uid://cicyfp5xjvvu4" path="res://scenes/stage.tscn" id="5_borcq"]
|
||||||
|
|
||||||
|
@ -15,63 +16,20 @@ script = ExtResource("1_objyc")
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
visible = false
|
visible = false
|
||||||
|
|
||||||
|
[node name="ScoreOverlay" parent="UI" instance=ExtResource("3_yvlw3")]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
visible = false
|
||||||
|
|
||||||
[node name="PauseOverlay" parent="UI" instance=ExtResource("3_8o178")]
|
[node name="PauseOverlay" parent="UI" instance=ExtResource("3_8o178")]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
process_mode = 2
|
process_mode = 2
|
||||||
visible = false
|
visible = false
|
||||||
|
|
||||||
[node name="ScoreOverlay" type="CenterContainer" parent="UI"]
|
|
||||||
unique_name_in_owner = true
|
|
||||||
process_mode = 2
|
|
||||||
visible = false
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
|
|
||||||
[node name="VBoxContainer3" type="VBoxContainer" parent="UI/ScoreOverlay"]
|
|
||||||
layout_mode = 2
|
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="UI/ScoreOverlay/VBoxContainer3"]
|
|
||||||
layout_mode = 2
|
|
||||||
theme_type_variation = &"HeaderLarge"
|
|
||||||
text = "game_over"
|
|
||||||
horizontal_alignment = 1
|
|
||||||
|
|
||||||
[node name="LabelScore" type="Label" parent="UI/ScoreOverlay/VBoxContainer3"]
|
|
||||||
layout_mode = 2
|
|
||||||
theme_type_variation = &"HeaderLarge"
|
|
||||||
text = "your_score"
|
|
||||||
horizontal_alignment = 1
|
|
||||||
|
|
||||||
[node name="FinalScore" type="Label" parent="UI/ScoreOverlay/VBoxContainer3"]
|
|
||||||
unique_name_in_owner = true
|
|
||||||
layout_mode = 2
|
|
||||||
theme_type_variation = &"HeaderLarge"
|
|
||||||
text = "100"
|
|
||||||
horizontal_alignment = 1
|
|
||||||
|
|
||||||
[node name="MenuContainer" type="VBoxContainer" parent="UI/ScoreOverlay/VBoxContainer3"]
|
|
||||||
unique_name_in_owner = true
|
|
||||||
layout_mode = 2
|
|
||||||
theme_override_constants/separation = 8
|
|
||||||
|
|
||||||
[node name="MainMenuButton" type="Button" parent="UI/ScoreOverlay/VBoxContainer3/MenuContainer"]
|
|
||||||
unique_name_in_owner = true
|
|
||||||
custom_minimum_size = Vector2(180, 0)
|
|
||||||
layout_mode = 2
|
|
||||||
size_flags_horizontal = 4
|
|
||||||
text = "new_game"
|
|
||||||
|
|
||||||
[node name="ExitButton" type="Button" parent="UI/ScoreOverlay/VBoxContainer3/MenuContainer"]
|
|
||||||
unique_name_in_owner = true
|
|
||||||
layout_mode = 2
|
|
||||||
text = "leave_game"
|
|
||||||
|
|
||||||
[node name="Crowd" parent="." instance=ExtResource("4_aeh13")]
|
[node name="Crowd" parent="." instance=ExtResource("4_aeh13")]
|
||||||
|
visible = false
|
||||||
position = Vector2(0, 0)
|
position = Vector2(0, 0)
|
||||||
|
|
||||||
[node name="Stage" parent="." instance=ExtResource("5_borcq")]
|
[node name="Stage" parent="." instance=ExtResource("5_borcq")]
|
||||||
|
visible = false
|
||||||
z_index = 10
|
z_index = 10
|
||||||
position = Vector2(291, 346)
|
position = Vector2(291, 346)
|
||||||
|
|
|
@ -0,0 +1,48 @@
|
||||||
|
[gd_scene format=3 uid="uid://b0xc4jjyahlvk"]
|
||||||
|
|
||||||
|
[node name="ScoreOverlay" type="CenterContainer"]
|
||||||
|
process_mode = 2
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
|
||||||
|
[node name="VBoxContainer3" type="VBoxContainer" parent="."]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="Label" type="Label" parent="VBoxContainer3"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_type_variation = &"HeaderLarge"
|
||||||
|
text = "game_over"
|
||||||
|
horizontal_alignment = 1
|
||||||
|
|
||||||
|
[node name="LabelScore" type="Label" parent="VBoxContainer3"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_type_variation = &"HeaderLarge"
|
||||||
|
text = "your_score"
|
||||||
|
horizontal_alignment = 1
|
||||||
|
|
||||||
|
[node name="FinalScore" type="Label" parent="VBoxContainer3"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
theme_type_variation = &"HeaderLarge"
|
||||||
|
text = "0"
|
||||||
|
horizontal_alignment = 1
|
||||||
|
|
||||||
|
[node name="MenuContainer" type="VBoxContainer" parent="VBoxContainer3"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/separation = 8
|
||||||
|
|
||||||
|
[node name="MainMenuButton" type="Button" parent="VBoxContainer3/MenuContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
custom_minimum_size = Vector2(180, 0)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "new_game"
|
||||||
|
|
||||||
|
[node name="ExitButton" type="Button" parent="VBoxContainer3/MenuContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
text = "leave_game"
|
Loading…
Reference in New Issue