main menu bg and log

This commit is contained in:
Metzkermeister 2023-10-02 23:42:43 +02:00
parent 1642aab0b5
commit 62b6f4ae51
3 changed files with 35 additions and 4 deletions

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

@ -3,15 +3,15 @@
importer="texture" importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://dy7it462po6a" uid="uid://dy7it462po6a"
path="res://.godot/imported/title.png-41b82296c92a3f6fb8fe028fe7f38132.ctex" path="res://.godot/imported/title.png-f520a0d529e74edf0d3ba77895c4527c.ctex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://src/gui/menu/title.png" source_file="res://assets/title.png"
dest_files=["res://.godot/imported/title.png-41b82296c92a3f6fb8fe028fe7f38132.ctex"] dest_files=["res://.godot/imported/title.png-f520a0d529e74edf0d3ba77895c4527c.ctex"]
[params] [params]

View file

@ -1,7 +1,9 @@
[gd_scene load_steps=8 format=3 uid="uid://bgtkxeh3lciik"] [gd_scene load_steps=10 format=3 uid="uid://bgtkxeh3lciik"]
[ext_resource type="Script" path="res://src/gui/menu/main.gd" id="1_p5r7q"] [ext_resource type="Script" path="res://src/gui/menu/main.gd" id="1_p5r7q"]
[ext_resource type="Texture2D" uid="uid://dio3rrptd6w7c" path="res://assets/bg_90_bk.png" id="2_wi35g"]
[ext_resource type="AudioStream" uid="uid://dh5jxxwim7ra8" path="res://assets/sounds/music/death_by_waveshaper.wav" id="2_yc480"] [ext_resource type="AudioStream" uid="uid://dh5jxxwim7ra8" path="res://assets/sounds/music/death_by_waveshaper.wav" id="2_yc480"]
[ext_resource type="Texture2D" uid="uid://dy7it462po6a" path="res://assets/title.png" id="3_emwtx"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2u7je"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2u7je"]
bg_color = Color(1, 1, 1, 1) bg_color = Color(1, 1, 1, 1)
@ -70,6 +72,22 @@ level_select = NodePath("LevelSelect")
first_selection = NodePath("Main/VBoxContainer/StartButton") first_selection = NodePath("Main/VBoxContainer/StartButton")
level_first_selection = NodePath("LevelSelect/VBoxContainer/VBoxContainer2/Row1/1") level_first_selection = NodePath("LevelSelect/VBoxContainer/VBoxContainer2/Row1/1")
[node name="Background" type="TextureRect" parent="."]
self_modulate = Color(0.898039, 0.898039, 0.898039, 1)
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -10790.0
offset_top = -8248.0
offset_right = 221818.0
offset_bottom = 169074.0
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(0.5, 0.5)
texture = ExtResource("2_wi35g")
stretch_mode = 1
[node name="Main" type="Panel" parent="."] [node name="Main" type="Panel" parent="."]
layout_mode = 1 layout_mode = 1
anchors_preset = 8 anchors_preset = 8
@ -119,6 +137,19 @@ size_flags_horizontal = 4
focus_neighbor_bottom = NodePath("../StartButton") focus_neighbor_bottom = NodePath("../StartButton")
text = "QUIT" text = "QUIT"
[node name="TextureRect" type="TextureRect" parent="Main"]
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 1.0
offset_top = -130.0
offset_right = 601.0
offset_bottom = -30.0
grow_vertical = 2
scale = Vector2(0.4, 0.4)
texture = ExtResource("3_emwtx")
[node name="LevelSelect" type="Panel" parent="."] [node name="LevelSelect" type="Panel" parent="."]
visible = false visible = false
layout_mode = 1 layout_mode = 1