Add menu system and scene navigation
The changes include: - Moving script files to scripts/ directory - Creating Start menu scene with Play/Quit buttons - Adding scene switching between menu and gameplay - Creating theme for menu buttons - Adding ESC key to return to menu
This commit is contained in:
parent
83ff6ef14d
commit
49988ae674
14 changed files with 202 additions and 6 deletions
101
resources/pong_theme.tres
Normal file
101
resources/pong_theme.tres
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
[gd_resource type="Theme" load_steps=7 format=3 uid="uid://cga6aww0tbilq"]
|
||||
|
||||
[sub_resource type="SystemFont" id="SystemFont_svo66"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_svo66"]
|
||||
content_margin_left = 4.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 4.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.35417196, 0.23284352, 0.33606362, 1)
|
||||
corner_radius_top_left = 3
|
||||
corner_radius_top_right = 3
|
||||
corner_radius_bottom_right = 3
|
||||
corner_radius_bottom_left = 3
|
||||
corner_detail = 5
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_u7j1g"]
|
||||
content_margin_left = 4.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 4.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.35417196, 0.23284352, 0.33606362, 1)
|
||||
draw_center = false
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
corner_radius_top_left = 3
|
||||
corner_radius_top_right = 3
|
||||
corner_radius_bottom_right = 3
|
||||
corner_radius_bottom_left = 3
|
||||
corner_detail = 5
|
||||
expand_margin_left = 2.0
|
||||
expand_margin_top = 2.0
|
||||
expand_margin_right = 2.0
|
||||
expand_margin_bottom = 2.0
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gwd0w"]
|
||||
content_margin_left = 136.0
|
||||
content_margin_right = 136.0
|
||||
bg_color = Color(0.42745098, 0.59607846, 0.7411765, 1)
|
||||
border_width_left = 7
|
||||
border_width_top = 7
|
||||
border_width_right = 7
|
||||
border_width_bottom = 7
|
||||
expand_margin_left = 52.0
|
||||
expand_margin_top = 52.0
|
||||
expand_margin_right = 52.0
|
||||
expand_margin_bottom = 52.0
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gq8b7"]
|
||||
content_margin_left = 136.0
|
||||
content_margin_right = 136.0
|
||||
bg_color = Color(0.20784314, 0.23921569, 0.2901961, 1)
|
||||
border_width_left = 7
|
||||
border_width_top = 7
|
||||
border_width_right = 7
|
||||
border_width_bottom = 7
|
||||
expand_margin_left = 52.0
|
||||
expand_margin_top = 52.0
|
||||
expand_margin_right = 52.0
|
||||
expand_margin_bottom = 52.0
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5f4su"]
|
||||
content_margin_left = 4.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 4.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.3529412, 0.23137255, 0.3372549, 1)
|
||||
corner_radius_top_left = 3
|
||||
corner_radius_top_right = 3
|
||||
corner_radius_bottom_right = 3
|
||||
corner_radius_bottom_left = 3
|
||||
corner_detail = 5
|
||||
|
||||
[resource]
|
||||
Button/colors/font_color = Color(0.875, 0.875, 0.875, 1)
|
||||
Button/colors/font_disabled_color = Color(0.875, 0.875, 0.875, 0.5)
|
||||
Button/colors/font_focus_color = Color(0.95, 0.95, 0.95, 1)
|
||||
Button/colors/font_hover_color = Color(0.95, 0.95, 0.95, 1)
|
||||
Button/colors/font_hover_pressed_color = Color(1, 1, 1, 1)
|
||||
Button/colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
Button/colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
Button/colors/icon_disabled_color = Color(1, 1, 1, 0.4)
|
||||
Button/colors/icon_focus_color = Color(1, 1, 1, 1)
|
||||
Button/colors/icon_hover_color = Color(1, 1, 1, 1)
|
||||
Button/colors/icon_hover_pressed_color = Color(1, 1, 1, 1)
|
||||
Button/colors/icon_normal_color = Color(1, 1, 1, 1)
|
||||
Button/colors/icon_pressed_color = Color(1, 1, 1, 1)
|
||||
Button/constants/align_to_largest_stylebox = 0
|
||||
Button/constants/h_separation = 10
|
||||
Button/constants/icon_max_width = 0
|
||||
Button/constants/line_spacing = 6
|
||||
Button/constants/outline_size = 4
|
||||
Button/font_sizes/font_size = 72
|
||||
Button/fonts/font = SubResource("SystemFont_svo66")
|
||||
Button/styles/disabled = SubResource("StyleBoxFlat_svo66")
|
||||
Button/styles/focus = SubResource("StyleBoxFlat_u7j1g")
|
||||
Button/styles/hover = SubResource("StyleBoxFlat_gwd0w")
|
||||
Button/styles/normal = SubResource("StyleBoxFlat_gq8b7")
|
||||
Button/styles/pressed = SubResource("StyleBoxFlat_5f4su")
|
||||
Loading…
Add table
Add a link
Reference in a new issue