diff --git a/gfx/ui/buttonSquare_brown.png b/gfx/ui/buttonSquare_brown.png new file mode 100644 index 0000000..c5f67bc --- /dev/null +++ b/gfx/ui/buttonSquare_brown.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:049a7de1e5127343a37b9e4de36d41acb8fc825b38c3174199ed026299a703a6 +size 512 diff --git a/gfx/ui/buttonSquare_brown.png.import b/gfx/ui/buttonSquare_brown.png.import new file mode 100644 index 0000000..0d78612 --- /dev/null +++ b/gfx/ui/buttonSquare_brown.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b0vf0rr7rvprp" +path="res://.godot/imported/buttonSquare_brown.png-3288940e5b25af73ac97d530f3df64ad.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://gfx/ui/buttonSquare_brown.png" +dest_files=["res://.godot/imported/buttonSquare_brown.png-3288940e5b25af73ac97d530f3df64ad.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/gfx/ui/buttonSquare_brown_pressed.png b/gfx/ui/buttonSquare_brown_pressed.png new file mode 100644 index 0000000..a92e69a --- /dev/null +++ b/gfx/ui/buttonSquare_brown_pressed.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ccbbd7fb46d5440ba3ee5efe6703c098eba8d2543c41b235d46444bbcfec5dac +size 454 diff --git a/gfx/ui/buttonSquare_brown_pressed.png.import b/gfx/ui/buttonSquare_brown_pressed.png.import new file mode 100644 index 0000000..7b59483 --- /dev/null +++ b/gfx/ui/buttonSquare_brown_pressed.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://br5cg1witxy7i" +path="res://.godot/imported/buttonSquare_brown_pressed.png-7085ccac0a74aa74aa45209c61480d54.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://gfx/ui/buttonSquare_brown_pressed.png" +dest_files=["res://.godot/imported/buttonSquare_brown_pressed.png-7085ccac0a74aa74aa45209c61480d54.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/project.godot b/project.godot index 1acc0b8..44d465d 100644 --- a/project.godot +++ b/project.godot @@ -11,6 +11,7 @@ config_version=5 [application] config/name="Legacy of the Ancient Questor" +run/main_scene="uid://dm8aun68tgprd" config/features=PackedStringArray("4.4", "GL Compatibility") config/icon="res://icon.svg" diff --git a/scenes/ui/title_screen.tscn b/scenes/ui/title_screen.tscn index 6939034..17cf271 100644 --- a/scenes/ui/title_screen.tscn +++ b/scenes/ui/title_screen.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=4 format=3 uid="uid://dm8aun68tgprd"] +[gd_scene load_steps=5 format=3 uid="uid://dm8aun68tgprd"] [ext_resource type="Texture2D" uid="uid://cm8lciwc0iuq" path="res://gfx/title/tree-3094982_1280.jpg" id="1_eb34j"] [ext_resource type="FontFile" uid="uid://1u28cjgctsn7" path="res://fonts/alagard_by_pix3m-d6awiwp.ttf" id="2_aqpy5"] +[ext_resource type="Theme" uid="uid://dnxny0n7ti7eq" path="res://themes/default_theme.tres" id="3_w8uqo"] [sub_resource type="LabelSettings" id="LabelSettings_w8uqo"] font = ExtResource("2_aqpy5") @@ -70,12 +71,21 @@ size_flags_horizontal = 3 [node name="New Game Button" type="Button" parent="Content/VBoxContainer/HBoxContainer/Button Menu"] layout_mode = 2 +focus_mode = 0 +theme = ExtResource("3_w8uqo") +theme_override_font_sizes/font_size = 45 text = "New Game" [node name="Load Game Button" type="Button" parent="Content/VBoxContainer/HBoxContainer/Button Menu"] layout_mode = 2 +focus_mode = 0 +theme = ExtResource("3_w8uqo") +theme_override_font_sizes/font_size = 45 text = "Load Game" [node name="Credits Button" type="Button" parent="Content/VBoxContainer/HBoxContainer/Button Menu"] layout_mode = 2 +focus_mode = 0 +theme = ExtResource("3_w8uqo") +theme_override_font_sizes/font_size = 45 text = "Credits" diff --git a/themes/default_theme.tres b/themes/default_theme.tres new file mode 100644 index 0000000..a6056fb --- /dev/null +++ b/themes/default_theme.tres @@ -0,0 +1,41 @@ +[gd_resource type="Theme" load_steps=7 format=3 uid="uid://dnxny0n7ti7eq"] + +[ext_resource type="FontFile" uid="uid://1u28cjgctsn7" path="res://fonts/alagard_by_pix3m-d6awiwp.ttf" id="1_lkf7m"] +[ext_resource type="Texture2D" uid="uid://b0vf0rr7rvprp" path="res://gfx/ui/buttonSquare_brown.png" id="2_fx2g0"] +[ext_resource type="Texture2D" uid="uid://br5cg1witxy7i" path="res://gfx/ui/buttonSquare_brown_pressed.png" id="3_nwjvr"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_r3xux"] +texture = ExtResource("2_fx2g0") +texture_margin_left = 6.48627 +texture_margin_top = 4.13675 +texture_margin_right = 7.43218 +texture_margin_bottom = 8.10783 +axis_stretch_horizontal = 1 +axis_stretch_vertical = 1 +region_rect = Rect2(-0.11042, 0, 45.1104, 49) + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_oxkhk"] +texture = ExtResource("2_fx2g0") +texture_margin_left = 6.48627 +texture_margin_top = 4.13675 +texture_margin_right = 7.43218 +texture_margin_bottom = 8.10783 +axis_stretch_horizontal = 1 +axis_stretch_vertical = 1 +region_rect = Rect2(-0.11042, 0, 45.1104, 49) + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_pvobe"] +texture = ExtResource("3_nwjvr") +texture_margin_left = 6.48627 +texture_margin_top = 4.13675 +texture_margin_right = 7.43218 +texture_margin_bottom = 8.10783 +axis_stretch_horizontal = 1 +axis_stretch_vertical = 1 +region_rect = Rect2(-0.11042, 0, 45.1104, 45.1079) + +[resource] +Button/fonts/font = ExtResource("1_lkf7m") +Button/styles/hover = SubResource("StyleBoxTexture_r3xux") +Button/styles/normal = SubResource("StyleBoxTexture_oxkhk") +Button/styles/pressed = SubResource("StyleBoxTexture_pvobe")