Skip to content

Commit

Permalink
add main menu background
Browse files Browse the repository at this point in the history
  • Loading branch information
barribob committed Jan 20, 2024
1 parent 9892614 commit 7f3e14c
Show file tree
Hide file tree
Showing 9 changed files with 4,867 additions and 80 deletions.
5 changes: 3 additions & 2 deletions 2/run.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ script = ExtResource("1_xrvck")
environment = SubResource("Environment_ach2a")

[node name="DirectionalLight3D" type="DirectionalLight3D" parent="WorldEnvironment"]
transform = Transform3D(0.611003, -0.789813, 0.0535753, 0.0319309, 0.0922108, 0.995228, -0.790984, -0.606376, 0.0815605, 0, 4.29437, 0)
transform = Transform3D(0.611003, -0.789813, 0.0535752, 0.0319309, 0.0922108, 0.995227, -0.790984, -0.606376, 0.0815605, 0, 4.29437, 0)
visible = false
light_energy = 0.1
directional_shadow_mode = 0
Expand All @@ -64,8 +64,9 @@ unique_name_in_owner = true

[node name="OmniLight3D" type="OmniLight3D" parent="Player"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.00274, 0)
light_energy = 1.5
light_energy = 3.0
light_size = 0.006
light_specular = 0.0
omni_range = 20.0

[node name="SpawnPositions" type="Node3D" parent="Player"]
Expand Down
2 changes: 1 addition & 1 deletion App/Scenes/InitApp/InitApp.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
[node name="InitApp" type="Node"]
script = ExtResource("1_gvtll")
_loading_screen = "res://App/Scenes/LoadingScreen/LoadingScreen.tscn"
_next_scene = "res://App/Scenes/Menus/MainMenu/MainMenu.tscn"
_next_scene = "res://main_menu_w_background.tscn"
98 changes: 52 additions & 46 deletions App/Scenes/Menus/MainMenu/MainMenu.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[gd_scene load_steps=20 format=3 uid="uid://c6k5nnpbypshi"]
[gd_scene load_steps=21 format=3 uid="uid://c6k5nnpbypshi"]

[ext_resource type="Script" path="res://App/Scenes/Menus/MainMenu/MainMenu.gd" id="1"]
[ext_resource type="Theme" uid="uid://cfu445y3vjite" path="res://data/theme.tres" id="1_3t6sn"]
[ext_resource type="PackedScene" uid="uid://bvwl11s2p0hd" path="res://App/Scenes/Menus/OptionsMenu/MasterOptionsMenu.tscn" id="2_ewwbc"]
[ext_resource type="PackedScene" uid="uid://t2dui8ppm3a4" path="res://App/Scenes/Credits/Credits.tscn" id="3_lcwf5"]
[ext_resource type="Script" path="res://App/Scripts/CaptureFocus.gd" id="4_l1ebe"]
Expand Down Expand Up @@ -50,7 +51,7 @@ tracks/2/keys = {
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("MarginContainer/VBoxContainer/MenuMargin/MenuButtons:modulate")
tracks/3/path = NodePath("MenuMargin/MenuButtons:modulate")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
Expand Down Expand Up @@ -102,7 +103,7 @@ tracks/1/keys = {
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("MarginContainer/VBoxContainer/MenuMargin/MenuButtons:modulate")
tracks/2/path = NodePath("MenuMargin/MenuButtons:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
Expand Down Expand Up @@ -221,7 +222,7 @@ tracks/2/keys = {
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("MarginContainer/VBoxContainer/MenuMargin/MenuButtons:modulate")
tracks/3/path = NodePath("MenuMargin/MenuButtons:modulate")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
Expand Down Expand Up @@ -302,6 +303,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_3t6sn")
script = ExtResource("1")
game_scene_path = "res://1/main.tscn"
options_packed_scene = ExtResource("2_ewwbc")
Expand Down Expand Up @@ -336,46 +338,17 @@ grow_horizontal = 0
grow_vertical = 0
horizontal_alignment = 2

[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
[node name="MenuMargin" type="MarginContainer" parent="."]
layout_mode = 2
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

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

[node name="TitlesMargin" type="MarginContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_top = 16

[node name="TitlesContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/TitlesMargin"]
layout_mode = 2

[node name="Title" type="Label" parent="MarginContainer/VBoxContainer/TitlesMargin/TitlesContainer"]
modulate = Color(1, 1, 1, 0)
layout_mode = 2
theme_override_font_sizes/font_size = 48
text = "GodotWild65"
horizontal_alignment = 1
vertical_alignment = 1

[node name="SubTitle" type="Label" parent="MarginContainer/VBoxContainer/TitlesMargin/TitlesContainer"]
modulate = Color(1, 1, 1, 0)
layout_mode = 2
theme_override_font_sizes/font_size = 24
horizontal_alignment = 1
vertical_alignment = 1

[node name="MenuMargin" type="MarginContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
offset_top = 125.0
offset_right = -641.0
size_flags_vertical = 3
theme_override_constants/margin_top = 16
theme_override_constants/margin_bottom = 16

[node name="MenuButtons" type="VBoxContainer" parent="MarginContainer/VBoxContainer/MenuMargin"]
[node name="MenuButtons" type="VBoxContainer" parent="MenuMargin"]
unique_name_in_owner = true
modulate = Color(1, 1, 1, 0)
layout_mode = 2
Expand All @@ -384,31 +357,64 @@ theme_override_constants/separation = 16
alignment = 1
script = ExtResource("4_l1ebe")

[node name="PlayButton" type="Button" parent="MarginContainer/VBoxContainer/MenuMargin/MenuButtons"]
[node name="PlayButton" type="Button" parent="MenuMargin/MenuButtons"]
unique_name_in_owner = true
custom_minimum_size = Vector2(128, 40)
layout_mode = 2
text = "Play"

[node name="OptionsButton" type="Button" parent="MarginContainer/VBoxContainer/MenuMargin/MenuButtons"]
[node name="OptionsButton" type="Button" parent="MenuMargin/MenuButtons"]
unique_name_in_owner = true
custom_minimum_size = Vector2(128, 40)
layout_mode = 2
text = "Options
"

[node name="CreditsButton" type="Button" parent="MarginContainer/VBoxContainer/MenuMargin/MenuButtons"]
[node name="CreditsButton" type="Button" parent="MenuMargin/MenuButtons"]
unique_name_in_owner = true
custom_minimum_size = Vector2(128, 40)
layout_mode = 2
text = "Credits"

[node name="ExitButton" type="Button" parent="MarginContainer/VBoxContainer/MenuMargin/MenuButtons"]
[node name="ExitButton" type="Button" parent="MenuMargin/MenuButtons"]
unique_name_in_owner = true
custom_minimum_size = Vector2(128, 40)
layout_mode = 2
text = "Exit"

[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

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

[node name="TitlesMargin" type="MarginContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_top = 16

[node name="TitlesContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/TitlesMargin"]
layout_mode = 2

[node name="Title" type="Label" parent="MarginContainer/VBoxContainer/TitlesMargin/TitlesContainer"]
modulate = Color(1, 1, 1, 0)
layout_mode = 2
theme_override_font_sizes/font_size = 48
text = "GodotWild65"
horizontal_alignment = 1
vertical_alignment = 1

[node name="SubTitle" type="Label" parent="MarginContainer/VBoxContainer/TitlesMargin/TitlesContainer"]
modulate = Color(1, 1, 1, 0)
layout_mode = 2
theme_override_font_sizes/font_size = 24
horizontal_alignment = 1
vertical_alignment = 1

[node name="OptionsContainer" type="MarginContainer" parent="."]
unique_name_in_owner = true
layout_mode = 1
Expand Down Expand Up @@ -460,8 +466,8 @@ text = "Back"
[node name="UISoundController" type="Node" parent="."]
script = ExtResource("6_bs342")

[connection signal="pressed" from="MarginContainer/VBoxContainer/MenuMargin/MenuButtons/PlayButton" to="." method="_on_play_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/MenuMargin/MenuButtons/OptionsButton" to="." method="_on_options_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/MenuMargin/MenuButtons/CreditsButton" to="." method="_on_credits_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/MenuMargin/MenuButtons/ExitButton" to="." method="_on_exit_button_pressed"]
[connection signal="pressed" from="MenuMargin/MenuButtons/PlayButton" to="." method="_on_play_button_pressed"]
[connection signal="pressed" from="MenuMargin/MenuButtons/OptionsButton" to="." method="_on_options_button_pressed"]
[connection signal="pressed" from="MenuMargin/MenuButtons/CreditsButton" to="." method="_on_credits_button_pressed"]
[connection signal="pressed" from="MenuMargin/MenuButtons/ExitButton" to="." method="_on_exit_button_pressed"]
[connection signal="pressed" from="FlowControlContainer/FlowControl/BackButton" to="." method="_on_back_button_pressed"]
5 changes: 5 additions & 0 deletions MainMenuRobot.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extends Node3D


func _ready():
$AnimationPlayer.play("Idle")
2 changes: 1 addition & 1 deletion ammo_icon.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

[node name="HealthIcon" type="TextureRect"]
texture_filter = 1
custom_minimum_size = Vector2(55, 19)
custom_minimum_size = Vector2(82.5, 28.5)
texture = ExtResource("1_vxkr3")
5 changes: 3 additions & 2 deletions data/theme.tres
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
[gd_resource type="Theme" load_steps=3 format=3 uid="uid://cfu445y3vjite"]

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_647nt"]
bg_color = Color(0, 0, 0, 1)
bg_color = Color(0.317647, 0.317647, 0.317647, 1)
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0rv1l"]
bg_color = Color(1, 1, 0, 1)
bg_color = Color(0.282353, 0.501961, 0.141176, 1)
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4

[resource]
Button/font_sizes/font_size = 24
MarginContainer/constants/margin_bottom = 10
MarginContainer/constants/margin_left = 10
MarginContainer/constants/margin_right = 10
Expand Down
4 changes: 3 additions & 1 deletion default_env.tres
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
[sub_resource type="Sky" id="1"]

[resource]
background_mode = 2
background_mode = 1
background_color = Color(0.0862745, 0.0862745, 0.0862745, 1)
sky = SubResource("1")
ambient_light_color = Color(0.2, 0.2, 0.2, 1)
4,771 changes: 4,771 additions & 0 deletions main_menu_w_background.tscn

Large diffs are not rendered by default.

Loading

0 comments on commit 7f3e14c

Please sign in to comment.