Settings and resolutions

This commit is contained in:
2025-07-29 19:15:39 +02:00
parent e638e780c8
commit ec3a23b5cc
16 changed files with 617 additions and 0 deletions

104
Game/Menu/mapselector.tscn Normal file
View File

@ -0,0 +1,104 @@
[gd_scene load_steps=10 format=3 uid="uid://cxet2lvdco2ak"]
[ext_resource type="Script" uid="uid://y5h2sfhsyn7f" path="res://Game/Menu/mapselector.gd" id="1_cnef1"]
[ext_resource type="Texture2D" uid="uid://bgy114b67j3kg" path="res://Assets/Others/8-bit-graphics-pixels-scene-with-castle.jpg" id="1_jteil"]
[ext_resource type="FontFile" uid="uid://bu44ne346ymoe" path="res://Assets/Others/Canterbury.ttf" id="2_2uj2s"]
[ext_resource type="Texture2D" uid="uid://cheweipqa125e" path="res://Assets/Maps/map1.png" id="3_2uj2s"]
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_cnef1"]
texture = ExtResource("1_jteil")
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_mjmwi"]
texture = ExtResource("3_2uj2s")
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_udeaf"]
texture = ExtResource("3_2uj2s")
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_5yqcp"]
texture = ExtResource("3_2uj2s")
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_cg1t8"]
texture = ExtResource("3_2uj2s")
[node name="mapselector" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_cnef1")
[node name="Panel" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxTexture_cnef1")
[node name="VBoxContainer2" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -179.0
offset_right = 179.0
offset_bottom = 200.0
grow_horizontal = 2
alignment = 1
[node name="Label" type="Label" parent="VBoxContainer2"]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_2uj2s")
theme_override_font_sizes/font_size = 86
text = "Defensaria"
[node name="Label2" type="Label" parent="VBoxContainer2"]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_2uj2s")
theme_override_font_sizes/font_size = 32
text = "Guardians of the Last Cytadel"
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -466.0
grow_horizontal = 2
grow_vertical = 0
theme_override_constants/separation = 50
alignment = 1
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 8
theme_override_constants/separation = 30
alignment = 1
[node name="first" type="VBoxContainer" parent="VBoxContainer/HBoxContainer"]
layout_mode = 2
alignment = 1
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/first"]
layout_mode = 2
size_flags_horizontal = 4
text = "1st Level"
[node name="Button" type="Button" parent="VBoxContainer/HBoxContainer/first"]
custom_minimum_size = Vector2(120, 80)
layout_mode = 2
theme_override_styles/focus = SubResource("StyleBoxTexture_mjmwi")
theme_override_styles/hover = SubResource("StyleBoxTexture_udeaf")
theme_override_styles/pressed = SubResource("StyleBoxTexture_5yqcp")
theme_override_styles/normal = SubResource("StyleBoxTexture_cg1t8")
[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer/first"]
layout_mode = 2
size_flags_horizontal = 4
text = "Score: 10 / "
[connection signal="pressed" from="VBoxContainer/HBoxContainer/first/Button" to="." method="_on_button_pressed"]