Update Pause Menu UI

This commit is contained in:
Moe Poi ~ 2023-10-25 23:25:42 +07:00
parent 8ba1836aef
commit 9a0ce5d90b

View file

@ -1,11 +1,25 @@
[gd_scene load_steps=5 format=3 uid="uid://bhnv1dsggssil"]
[gd_scene load_steps=9 format=3 uid="uid://bhnv1dsggssil"]
[ext_resource type="Script" path="res://scripts/ui/pause_menu.gd" id="1_4u0k0"]
[ext_resource type="Texture2D" uid="uid://c7j841b5u4tu3" path="res://assets/icons/resume.png" id="1_kdmgn"]
[ext_resource type="Theme" uid="uid://bt3yyqwlp4f7j" path="res://themes/title_text.tres" id="2_78oyc"]
[ext_resource type="Texture2D" uid="uid://cgl1iul3vlrds" path="res://assets/icons/main-menu.png" id="2_febfx"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hrh7j"]
bg_color = Color(0.145098, 0.145098, 0.145098, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gy317"]
bg_color = Color(0.113725, 0.113725, 0.113725, 0.819608)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[sub_resource type="Theme" id="Theme_ntodv"]
Panel/styles/panel = SubResource("StyleBoxFlat_gy317")
[sub_resource type="Theme" id="Theme_klyxt"]
Label/font_sizes/font_size = 25
[sub_resource type="Theme" id="Theme_adqqq"]
Label/font_sizes/font_size = 25
[node name="PauseMenu" type="Control"]
process_mode = 2
@ -30,7 +44,7 @@ offset_right = 203.0
offset_bottom = 222.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_hrh7j")
theme = SubResource("Theme_ntodv")
[node name="MarginContainer" type="MarginContainer" parent="Panel"]
layout_mode = 1
@ -48,8 +62,14 @@ theme_override_constants/margin_bottom = 10
[node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer"]
[node name="MarginContainer" type="MarginContainer" parent="Panel/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_top = 10
theme_override_constants/margin_bottom = 20
[node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/MarginContainer"]
layout_mode = 2
theme = ExtResource("2_78oyc")
text = "PAUSED"
horizontal_alignment = 1
@ -70,6 +90,7 @@ texture_normal = ExtResource("1_kdmgn")
[node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 6
theme = SubResource("Theme_klyxt")
text = "Resume"
horizontal_alignment = 1
justification_flags = 162
@ -88,6 +109,7 @@ texture_normal = ExtResource("2_febfx")
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 6
theme = SubResource("Theme_adqqq")
text = "Main Menu"
horizontal_alignment = 1