Skip to content

Commit

Permalink
styling all menus
Browse files Browse the repository at this point in the history
  • Loading branch information
KartikWatts committed Feb 2, 2024
1 parent bd30ae9 commit 5eaf223
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 17 deletions.
42 changes: 41 additions & 1 deletion 2d-survivors-course/resources/theme/theme.tres
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_resource type="Theme" load_steps=10 format=3 uid="uid://dppehnirbmmb0"]
[gd_resource type="Theme" load_steps=15 format=3 uid="uid://dppehnirbmmb0"]

[ext_resource type="Texture2D" uid="uid://biblk671fhhbj" path="res://assets/ui/ui.png" id="1_5h6y5"]
[ext_resource type="FontFile" uid="uid://b7708ebmlmygw" path="res://resources/theme/Rockboxcond12.ttf" id="1_8cegc"]
Expand Down Expand Up @@ -37,6 +37,35 @@ texture_margin_right = 3.0
texture_margin_bottom = 3.0
region_rect = Rect2(4, 20, 8, 8)

[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_msje5"]
size = Vector2(0, 0)

[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_y2dtu"]
size = Vector2(0, 0)

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_m3y3g"]
bg_color = Color(0.458824, 0.890196, 1, 1)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.8, 0.8, 0.8, 0)

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_dhuwx"]
bg_color = Color(0.458824, 0.890196, 1, 1)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.8, 0.8, 0.8, 0)

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_om57s"]
content_margin_left = 2.0
content_margin_top = 6.0
content_margin_right = 2.0
content_margin_bottom = 6.0
bg_color = Color(0.247059, 0.14902, 0.192157, 1)

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_oku1q"]
texture = ExtResource("1_5h6y5")
texture_margin_left = 4.0
Expand All @@ -53,6 +82,12 @@ default_font = ExtResource("1_8cegc")
default_font_size = 16
AlternatePanelContainer/base_type = &"PanelContainer"
AlternatePanelContainer/styles/panel = SubResource("StyleBoxTexture_uv6ji")
BlueOutlineLabel/base_type = &"Label"
BlueOutlineLabel/colors/font_outline_color = Color(0.14902, 0.168627, 0.266667, 1)
BlueOutlineLabel/colors/font_shadow_color = Color(0.14902, 0.168627, 0.266667, 1)
BlueOutlineLabel/constants/outline_size = 8
BlueOutlineLabel/constants/shadow_offset_x = 0
BlueOutlineLabel/constants/shadow_offset_y = 0
Button/colors/font_color = Color(0.247059, 0.14902, 0.192157, 1)
Button/colors/font_focus_color = Color(0.247059, 0.14902, 0.192157, 1)
Button/colors/font_hover_color = Color(0.741176, 0.423529, 0.290196, 1)
Expand All @@ -61,6 +96,11 @@ Button/styles/focus = SubResource("StyleBoxEmpty_buqax")
Button/styles/hover = SubResource("StyleBoxTexture_qfdxb")
Button/styles/normal = SubResource("StyleBoxTexture_5jl24")
Button/styles/pressed = SubResource("StyleBoxTexture_v6dad")
HSlider/icons/grabber = SubResource("PlaceholderTexture2D_msje5")
HSlider/icons/grabber_highlight = SubResource("PlaceholderTexture2D_y2dtu")
HSlider/styles/grabber_area = SubResource("StyleBoxFlat_m3y3g")
HSlider/styles/grabber_area_highlight = SubResource("StyleBoxFlat_dhuwx")
HSlider/styles/slider = SubResource("StyleBoxFlat_om57s")
Label/constants/line_spacing = 0
PanelContainer/styles/panel = SubResource("StyleBoxTexture_oku1q")
ProgressBar/styles/background = SubResource("StyleBoxFlat_bkthj")
6 changes: 2 additions & 4 deletions 2d-survivors-course/scenes/ui/ability_update_card.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ theme_type_variation = &"AlternatePanelContainer"
unique_name_in_owner = true
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
theme_override_colors/font_outline_color = Color(0.14902, 0.168627, 0.266667, 1)
theme_override_constants/outline_size = 8
theme_type_variation = &"BlueOutlineLabel"
theme_override_font_sizes/font_size = 32
text = "Test Name"
vertical_alignment = 2
Expand All @@ -257,8 +256,7 @@ autowrap_mode = 2
unique_name_in_owner = true
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
theme_type_variation = &"BlueOutlineLabel"
theme_override_colors/font_shadow_color = Color(0.14902, 0.168627, 0.266667, 1)
theme_override_colors/font_outline_color = Color(0.14902, 0.168627, 0.266667, 1)
theme_override_constants/outline_size = 8
text = "Description Here Ram Ram"
autowrap_mode = 2
12 changes: 2 additions & 10 deletions 2d-survivors-course/scenes/ui/end_screen.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ theme_override_constants/separation = 16
[node name="TitleLabel" type="Label" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
theme_override_colors/font_shadow_color = Color(0.14902, 0.168627, 0.266667, 1)
theme_override_colors/font_outline_color = Color(0.14902, 0.168627, 0.266667, 1)
theme_override_constants/shadow_offset_x = 0
theme_override_constants/shadow_offset_y = 0
theme_override_constants/outline_size = 8
theme_type_variation = &"BlueOutlineLabel"
theme_override_font_sizes/font_size = 32
text = "Victory"
horizontal_alignment = 1
Expand All @@ -130,11 +126,7 @@ vertical_alignment = 1
[node name="DescriptionLabel" type="Label" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
theme_override_colors/font_shadow_color = Color(0.14902, 0.168627, 0.266667, 1)
theme_override_colors/font_outline_color = Color(0.14902, 0.168627, 0.266667, 1)
theme_override_constants/shadow_offset_x = 0
theme_override_constants/shadow_offset_y = 0
theme_override_constants/outline_size = 8
theme_type_variation = &"BlueOutlineLabel"
text = "You won!"

[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
Expand Down
6 changes: 5 additions & 1 deletion 2d-survivors-course/scenes/ui/main_menu.tscn
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[gd_scene load_steps=4 format=3 uid="uid://c2hr2o1mu1hef"]
[gd_scene load_steps=5 format=3 uid="uid://c2hr2o1mu1hef"]

[ext_resource type="TileSet" uid="uid://wiluhbm2cyyi" path="res://resources/tileset.tres" id="1_4hroe"]
[ext_resource type="Script" path="res://scenes/ui/main_menu.gd" id="1_jhh0q"]
[ext_resource type="PackedScene" uid="uid://dtryyvn2r6lfw" path="res://scenes/ui/vignette.tscn" id="2_27k4i"]
[ext_resource type="PackedScene" uid="uid://bh7lcao1jlt4v" path="res://scenes/ui/sound_button.tscn" id="2_p0whh"]

[node name="MainMenu" type="CanvasLayer"]
Expand Down Expand Up @@ -39,6 +40,7 @@ size_flags_vertical = 4

[node name="Label" type="Label" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"BlueOutlineLabel"
theme_override_font_sizes/font_size = 32
text = "The Arena"

Expand All @@ -56,3 +58,5 @@ text = "Options"
unique_name_in_owner = true
layout_mode = 2
text = "Quit"

[node name="Vignette" parent="." instance=ExtResource("2_27k4i")]
11 changes: 10 additions & 1 deletion 2d-survivors-course/scenes/ui/options_menu.tscn
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[gd_scene load_steps=4 format=3 uid="uid://4h20hx8ebmwe"]
[gd_scene load_steps=5 format=3 uid="uid://4h20hx8ebmwe"]

[ext_resource type="Script" path="res://scenes/ui/options_menu.gd" id="1_q7v2y"]
[ext_resource type="TileSet" uid="uid://wiluhbm2cyyi" path="res://resources/tileset.tres" id="2_se8vn"]
[ext_resource type="PackedScene" uid="uid://bh7lcao1jlt4v" path="res://scenes/ui/sound_button.tscn" id="3_b2kv7"]
[ext_resource type="PackedScene" uid="uid://dtryyvn2r6lfw" path="res://scenes/ui/vignette.tscn" id="4_bwo7j"]

[node name="OptionsMenu" type="CanvasLayer"]
script = ExtResource("1_q7v2y")
Expand Down Expand Up @@ -41,6 +42,7 @@ theme_override_constants/separation = 24

[node name="Label" type="Label" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"BlueOutlineLabel"
theme_override_font_sizes/font_size = 32
text = "Options"
horizontal_alignment = 1
Expand All @@ -54,6 +56,7 @@ layout_mode = 2

[node name="Label" type="Label" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/SfxOptionContainer"]
layout_mode = 2
theme_type_variation = &"BlueOutlineLabel"
text = "SFX Volume"

[node name="SfxSlider" type="HSlider" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/SfxOptionContainer"]
Expand All @@ -67,19 +70,22 @@ layout_mode = 2

[node name="Label" type="Label" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/MusicOptionContainer"]
layout_mode = 2
theme_type_variation = &"BlueOutlineLabel"
text = "Music Volume"

[node name="MusicSlider" type="HSlider" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/MusicOptionContainer"]
unique_name_in_owner = true
layout_mode = 2
max_value = 1.0
step = 0.01
value = 0.5

[node name="WindowOptionContainer" type="VBoxContainer" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/VBoxContainer"]
layout_mode = 2

[node name="Label" type="Label" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/WindowOptionContainer"]
layout_mode = 2
theme_type_variation = &"BlueOutlineLabel"
text = "Window Mode"

[node name="WindowButton" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/WindowOptionContainer" instance=ExtResource("3_b2kv7")]
Expand All @@ -94,3 +100,6 @@ custom_minimum_size = Vector2(50, 0)
layout_mode = 2
size_flags_horizontal = 0
text = "Back"

[node name="Vignette" parent="." instance=ExtResource("4_bwo7j")]
layer = 10

0 comments on commit 5eaf223

Please sign in to comment.