aboutsummaryrefslogtreecommitdiff
path: root/game/theme
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-04-23 22:01:49 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-05-12 13:32:21 +0200
commit8ab166ae0bd784145c3706aba0c3f3326cbbaac1 (patch)
treee4511c51eb4ceaefd92a7ad8a00f42910eb83811 /game/theme
parent398ba6f05ae1bb13e59790436bf0da299e5a399d (diff)
Add SaveManager autoload singleton
Globally handles save finding, creation, removal, changes, naming, and flushing Globally handles the session tags for the active save Add SaveLoadMenu to GameSession Add Start Date Panel and Save Panel loading to LobbyMenu Includes session tag filter Add LobbyPanelButton and SavePanelButton scene and scripts Add SaveResource to handle saving and loading individual save files Add localization for SaveLoadMenu Expand localization for additions to LobbyMenu Add ButtonContainer variation type to default theme Fulfill: UI-82, UI-83, UI-84, UI-85, UI-87, UI-89, UI-90, UI-91, UI-92, UI-94 UIFUN-82, UIFUN-83, UIFUN-84, UIFUN-86, UIFUN-87, UIFUN-89 FS-28
Diffstat (limited to 'game/theme')
-rw-r--r--game/theme/default_theme.tres77
-rw-r--r--game/theme/game_session_menu.tres2
2 files changed, 77 insertions, 2 deletions
diff --git a/game/theme/default_theme.tres b/game/theme/default_theme.tres
index 6104472..dd8d310 100644
--- a/game/theme/default_theme.tres
+++ b/game/theme/default_theme.tres
@@ -1,3 +1,78 @@
-[gd_resource type="Theme" format=3 uid="uid://b48ymrsp1q8sf"]
+[gd_resource type="Theme" load_steps=6 format=3 uid="uid://b48ymrsp1q8sf"]
+
+[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_oe2hl"]
+content_margin_left = 4.0
+content_margin_top = 4.0
+content_margin_right = 4.0
+content_margin_bottom = 4.0
+bg_color = Color(0.1, 0.1, 0.1, 0.3)
+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_35fls"]
+content_margin_left = 4.0
+content_margin_top = 4.0
+content_margin_right = 4.0
+content_margin_bottom = 4.0
+bg_color = Color(1, 1, 1, 0.75)
+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_auvpk"]
+content_margin_left = 4.0
+content_margin_top = 4.0
+content_margin_right = 4.0
+content_margin_bottom = 4.0
+bg_color = Color(0.23, 0.23, 0.23, 0.6)
+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_mxxc2"]
+content_margin_left = 4.0
+content_margin_top = 4.0
+content_margin_right = 4.0
+content_margin_bottom = 4.0
+bg_color = Color(0.1, 0.1, 0.1, 0.6)
+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_ewy26"]
+content_margin_left = 4.0
+content_margin_top = 4.0
+content_margin_right = 4.0
+content_margin_bottom = 4.0
+bg_color = Color(0, 0, 0, 0.6)
+corner_radius_top_left = 3
+corner_radius_top_right = 3
+corner_radius_bottom_right = 3
+corner_radius_bottom_left = 3
+corner_detail = 5
[resource]
+ButtonContainer/base_type = &"Button"
+ButtonContainer/styles/disabled = SubResource("StyleBoxFlat_oe2hl")
+ButtonContainer/styles/focus = SubResource("StyleBoxFlat_35fls")
+ButtonContainer/styles/hover = SubResource("StyleBoxFlat_auvpk")
+ButtonContainer/styles/normal = SubResource("StyleBoxFlat_mxxc2")
+ButtonContainer/styles/pressed = SubResource("StyleBoxFlat_ewy26")
diff --git a/game/theme/game_session_menu.tres b/game/theme/game_session_menu.tres
index 42775c3..0cab476 100644
--- a/game/theme/game_session_menu.tres
+++ b/game/theme/game_session_menu.tres
@@ -1,4 +1,4 @@
-[gd_resource type="Theme" load_steps=11 format=3 uid="uid://dndova5cw036e"]
+[gd_resource type="Theme" load_steps=11 format=3 uid="uid://cqrfmjt5yeti7"]
[ext_resource type="StyleBox" uid="uid://blwilunhmyvpq" path="res://theme/assets/main_menu_button_normal.tres" id="1_7med2"]
[ext_resource type="Script" path="res://src/Utility/StyleBoxWithSound.gd" id="2_oj3dv"]