Make end screen look a little better
This commit is contained in:
parent
6b2065f4b2
commit
89c811473b
2 changed files with 70 additions and 10 deletions
|
|
@ -1,7 +1,35 @@
|
|||
[gd_scene load_steps=2 format=3]
|
||||
[gd_scene load_steps=4 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/end_screen.gd" id="1"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="CardStyle"]
|
||||
bg_color = Color(0.05, 0.18, 0.05, 1)
|
||||
border_width_left = 3
|
||||
border_width_top = 3
|
||||
border_width_right = 3
|
||||
border_width_bottom = 3
|
||||
border_color = Color(0.2, 1, 0.2, 1)
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="ButtonStyle"]
|
||||
bg_color = Color(0.1, 0.3, 0.1, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.2, 1, 0.2, 1)
|
||||
corner_radius_top_left = 4
|
||||
corner_radius_top_right = 4
|
||||
corner_radius_bottom_right = 4
|
||||
corner_radius_bottom_left = 4
|
||||
content_margin_left = 24
|
||||
content_margin_right = 24
|
||||
content_margin_top = 12
|
||||
content_margin_bottom = 12
|
||||
|
||||
[node name="EndScreen" type="CanvasLayer"]
|
||||
layer = 10
|
||||
script = ExtResource("1")
|
||||
|
|
@ -10,7 +38,7 @@ script = ExtResource("1")
|
|||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 0.7)
|
||||
color = Color(0, 0, 0, 0.85)
|
||||
|
||||
[node name="Center" type="CenterContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
|
|
@ -18,30 +46,41 @@ anchor_bottom = 1.0
|
|||
mouse_filter = 1
|
||||
|
||||
[node name="Card" type="PanelContainer" parent="Center"]
|
||||
theme_override_styles/panel = SubResource("CardStyle")
|
||||
|
||||
[node name="Margin" type="MarginContainer" parent="Center/Card"]
|
||||
theme_override_constants/margin_left = 40
|
||||
theme_override_constants/margin_right = 40
|
||||
theme_override_constants/margin_top = 32
|
||||
theme_override_constants/margin_bottom = 32
|
||||
theme_override_constants/margin_left = 56
|
||||
theme_override_constants/margin_right = 56
|
||||
theme_override_constants/margin_top = 40
|
||||
theme_override_constants/margin_bottom = 40
|
||||
|
||||
[node name="Column" type="VBoxContainer" parent="Center/Card/Margin"]
|
||||
theme_override_constants/separation = 20
|
||||
theme_override_constants/separation = 24
|
||||
|
||||
[node name="Headline" type="Label" parent="Center/Card/Margin/Column"]
|
||||
text = "YOU ESCAPED"
|
||||
horizontal_alignment = 1
|
||||
theme_override_font_sizes/font_size = 48
|
||||
theme_override_colors/font_color = Color(0.2, 1, 0.2, 1)
|
||||
theme_override_font_sizes/font_size = 56
|
||||
|
||||
[node name="ScoreLabel" type="Label" parent="Center/Card/Margin/Column"]
|
||||
text = "Score: 0"
|
||||
horizontal_alignment = 1
|
||||
theme_override_font_sizes/font_size = 24
|
||||
theme_override_colors/font_color = Color(0.7, 0.95, 0.7, 1)
|
||||
theme_override_font_sizes/font_size = 28
|
||||
|
||||
[node name="SavedLabel" type="Label" parent="Center/Card/Margin/Column"]
|
||||
text = "Survivors saved: 0"
|
||||
horizontal_alignment = 1
|
||||
theme_override_font_sizes/font_size = 24
|
||||
theme_override_colors/font_color = Color(0.7, 0.95, 0.7, 1)
|
||||
theme_override_font_sizes/font_size = 28
|
||||
|
||||
[node name="RestartButton" type="Button" parent="Center/Card/Margin/Column"]
|
||||
text = "RESTART"
|
||||
theme_override_colors/font_color = Color(0.2, 1, 0.2, 1)
|
||||
theme_override_colors/font_hover_color = Color(0.5, 1, 0.5, 1)
|
||||
theme_override_font_sizes/font_size = 24
|
||||
theme_override_styles/normal = SubResource("ButtonStyle")
|
||||
theme_override_styles/hover = SubResource("ButtonStyle")
|
||||
theme_override_styles/pressed = SubResource("ButtonStyle")
|
||||
theme_override_styles/focus = SubResource("ButtonStyle")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue